From 397388f1aca42ff814d6cb15b7f91fdd464e9c01 Mon Sep 17 00:00:00 2001 From: Stas Seliverstov Date: Sat, 25 Jan 2020 21:13:49 +0300 Subject: [PATCH] add --- .github/workflows/build.yaml | 4 +-- .github/workflows/release.yaml | 56 ++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a304f93a..11db5e72 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: allure python +name: build allure python on: [push] @@ -28,7 +28,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install Tox + - name: Install tox run: pip install tox - name: Static check ${{ matrix.package }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..50d625fd --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,56 @@ +name: release allure python + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + pushd allure-python-commons-test + python setup.py sdist bdist_wheel + twine upload dist/* + popd + + pushd allure-python-commons + python setup.py sdist bdist_wheel + twine upload dist/* + popd + + pushd allure-behave + python setup.py sdist bdist_wheel + twine upload dist/* + popd + + pushd allure-pytest + python setup.py sdist bdist_wheel + twine upload dist/* + popd + + pushd allure-pytest-bdd + python setup.py sdist bdist_wheel + twine upload dist/* + popd + + pushd allure-robotframework + python setup.py sdist bdist_wheel + twine upload dist/* + popd