Skip to content

Commit

Permalink
release to github as well as pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed May 23, 2024
1 parent 55a2a85 commit af7d0e5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,18 @@ jobs:
run: docker run --rm -v "$(pwd):/src" "$BASE_IMAGE_NAME" python -m build -s
shell: bash

- name: Publish
- name: 'Deploy package to the Github release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: 'dist/*'
file_glob: true
tag: ${{ github.ref }}

- name: Publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: ${{ vars.PYPI_REPOSITORY_URL }}
Expand Down

0 comments on commit af7d0e5

Please sign in to comment.