Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
.github: Add Automated release process
  • Loading branch information
corona10 committed Dec 5, 2022
commit fef8de4025d4dacb898f5676ca0018b6c686f1f4
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Upload Python Package
Comment thread
corona10 marked this conversation as resolved.

on:
release:
types: [created]
Comment thread
corona10 marked this conversation as resolved.
Outdated

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
Comment thread
corona10 marked this conversation as resolved.
- name: Install dependencies
run: |
python -m pip install --user --upgrade setuptools wheel
- name: Build
run: |
python setup.py sdist bdist_wheel
Comment thread
corona10 marked this conversation as resolved.
Outdated
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@master
Comment thread
corona10 marked this conversation as resolved.
Outdated
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}