Skip to content

Commit

Permalink
Merge pull request #179 from aerispaha/feat/175
Browse files Browse the repository at this point in the history
drop appveyor and release with GitHub Actions
  • Loading branch information
aerispaha authored Jan 5, 2023
2 parents 7986715 + 2734f58 commit 9f14f60
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 40 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Python Package
name: Publish to PyPI

on:
release:
Expand All @@ -12,7 +12,31 @@ permissions:

jobs:
on-success:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: echo 'The triggering workflow passed'
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Build package
run: >-
pip install wheel &&
python setup.py bdist_wheel
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'
38 changes: 0 additions & 38 deletions appveyor.yml

This file was deleted.

0 comments on commit 9f14f60

Please sign in to comment.