Skip to content

Commit

Permalink
rewrite github action
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyElaina committed Jun 4, 2022
1 parent a548fbd commit 66f19cb
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and publish to pypi
uses: JRubics/[email protected]
- uses: actions/setup-python@v3
name: Ensure Python Runtime
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
python-version: '3.x'
architecture: 'x64'
- name: Ensure PDM & twine
run: |
python3 -m pip install pdm twine
- name: Build Package
run: |
pdm build
- name: Publish to PyPI
run: |
twine upload dist/* --non-interactive -u __token__ -p ${{ secrets.PYPI_TOKEN }}

0 comments on commit 66f19cb

Please sign in to comment.