From 96cf260375b48c28920283514d7d720b785273da Mon Sep 17 00:00:00 2001 From: simleek Date: Sat, 9 Nov 2019 22:34:00 -0700 Subject: [PATCH] Moved publishing to linux --- .github/workflows/publish.yml | 30 +++++++++++++++++++++++++++++ .github/workflows/pythonpackage.yml | 10 ---------- 2 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f475faa --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: Python package + +on: [push] + +jobs: + build-and-publish: + + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - uses: dschep/install-poetry-action@v1.2 + - name: Install dependencies + run: poetry install + - name: Build with Poetry + run: poetry build + - name: Publish distribution 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.test_pypi_password }} + repository_url: https://test.pypi.org/legacy/ + - name: Publish distribution 📦 to PyPI + if: startsWith(github.event.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.pypi_password }} \ No newline at end of file diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 067706c..5a9afd0 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -23,13 +23,3 @@ jobs: run: poetry install - name: Test with tox run: poetry run tox -p auto -o - - name: Publish distribution 📦 to Test PyPI - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.test_pypi_password }} - repository_url: https://test.pypi.org/legacy/ - - name: Publish distribution 📦 to PyPI - if: startsWith(github.event.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.pypi_password }}