Skip to content

Commit e54b92c

Browse files
authored
release automation (via #459)
1 parent 504570d commit e54b92c

File tree

2 files changed

+58
-2
lines changed

2 files changed

+58
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: allure python
1+
name: build allure python
22

33
on: [push]
44

@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030

31-
- name: Install Tox
31+
- name: Install tox
3232
run: pip install tox
3333

3434
- name: Static check ${{ matrix.package }}

.github/workflows/release.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: release allure python
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: '3.x'
17+
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install setuptools wheel twine
22+
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
26+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
27+
run: |
28+
pushd allure-python-commons-test
29+
python setup.py sdist bdist_wheel
30+
twine upload dist/*
31+
popd
32+
33+
pushd allure-python-commons
34+
python setup.py sdist bdist_wheel
35+
twine upload dist/*
36+
popd
37+
38+
pushd allure-behave
39+
python setup.py sdist bdist_wheel
40+
twine upload dist/*
41+
popd
42+
43+
pushd allure-pytest
44+
python setup.py sdist bdist_wheel
45+
twine upload dist/*
46+
popd
47+
48+
pushd allure-pytest-bdd
49+
python setup.py sdist bdist_wheel
50+
twine upload dist/*
51+
popd
52+
53+
pushd allure-robotframework
54+
python setup.py sdist bdist_wheel
55+
twine upload dist/*
56+
popd

0 commit comments

Comments
 (0)