Skip to content

Commit

Permalink
[ISSUE-#19] ci: implement publish to pypi automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
stu01509 committed Aug 13, 2023
1 parent b674da0 commit abdf9bd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
release:
types: [created]

jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install twine
- name: Build
run: python setup.py sdist bdist_wheel
- name: Release
run: |
twine check .\dist\*
twine upload .\dist\*
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit abdf9bd

Please sign in to comment.