Skip to content

Commit

Permalink
Added push cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Nov 22, 2024
1 parent 7b93071 commit fdddb6f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,25 @@ jobs:
name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
generate_release_notes: true
generate_release_notes: true
push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get the version
id: get_version
if: startsWith(github.ref, 'refs/tags/')
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.12

- name: Build Packages
run: |
pip install --upgrade pip setuptools wheel twine
python setup.py sdist
python -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_PASSWORD }}

0 comments on commit fdddb6f

Please sign in to comment.