File tree 4 files changed +27
-50
lines changed
4 files changed +27
-50
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,45 @@ name: Deploy to Pypi
2
2
on :
3
3
push :
4
4
tags :
5
- - ' *'
5
+ - ' v*.*. *'
6
6
7
7
jobs :
8
8
deploy :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v1
12
+
12
13
- name : Set up Python 3.7
13
14
uses : actions/setup-python@v1
14
15
with :
15
16
python-version : 3.7
17
+
16
18
- name : Install Dependencies
17
19
run : pip install -r requirements/dev.txt
20
+
18
21
- name : Set env
19
22
run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
23
+
20
24
- name : update Package version
21
25
run : sed -i "s/.*__version__.*/__version__ = \"${{ env.RELEASE_VERSION }}\"/g" search_engine_parser/__init__.py
26
+
22
27
- name : Install pypa/build
23
28
run : python -m pip install build --user
29
+
24
30
- name : Build a binary wheel and a source tarball
25
31
run : python -m build --sdist --wheel --outdir dist/ .
32
+
33
+ - name : Build Changelog
34
+ id : github_release
35
+ uses : mikepenz/release-changelog-builder-action@v3
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+
39
+ - name : Create Release
40
+
41
+ with :
42
+ body : ${{steps.github_release.outputs.changelog}}
43
+
26
44
- name : Publish package
27
45
uses : pypa/gh-action-pypi-publish@release/v1
28
46
with :
Original file line number Diff line number Diff line change 13
13
- ' **.py'
14
14
- ' requirements/**'
15
15
16
- strategy :
17
- matrix :
18
- python : ["3.6", "3.7", "3.8", "3.9"]
19
-
20
16
jobs :
21
17
test :
18
+ strategy :
19
+ matrix :
20
+ python : ["3.6", "3.7", "3.8", "3.9"]
22
21
runs-on : ubuntu-latest
23
22
steps :
24
23
- uses : actions/checkout@v1
24
+
25
25
- name : Set up Python 3.7
26
26
uses : actions/setup-python@v1
27
27
with :
28
28
python-version : ${{ matrix.python }}
29
+
29
30
- name : Install Dependencies
30
31
run : pip install -r requirements/dev.txt
32
+
31
33
- name : Install package
32
34
run : pytest -s
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
[ ![ Python 3.6|3.7|3.8|3.9] ( https://img.shields.io/badge/python-3.5%7C3.6%7C3.7%7C3.8-blue )] ( https://www.python.org/downloads/ )
8
8
[ ![ PyPI version] ( https://img.shields.io/pypi/v/search-engine-parser )] ( https://pypi.org/project/search-engine-parser/ )
9
9
[ ![ PyPI - Downloads] ( https://img.shields.io/pypi/dm/search-engine-parser )] ( https://pypi.org/project/search-engine-parser/ )
10
- [ ![ Build Status] ( https://travis-ci.com/bisoncorps/search-engine-parser.svg?branch=master )] ( https://travis-ci.com/bisoncorps/search-engine-parser )
10
+ [ ![ Deploy to Pypi] ( https://github.com/bisohns/search-engine-parser/actions/workflows/deploy.yml/badge.svg )] ( https://github.com/bisohns/search-engine-parser/actions/workflows/deploy.yml )
11
+ [ ![ Test] ( https://github.com/bisohns/search-engine-parser/actions/workflows/test.yml/badge.svg )] ( https://github.com/bisohns/search-engine-parser/actions/workflows/test.yml )
11
12
[ ![ Documentation Status] ( https://readthedocs.org/projects/search-engine-parser/badge/?version=latest )] ( https://search-engine-parser.readthedocs.io/en/latest/?badge=latest )
12
13
[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
13
14
[ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-10-orange.svg )] ( #contributors )
You can’t perform that action at this time.
0 commit comments