-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from qua-platform/publish_to_pypi
Publish to PyPI
- Loading branch information
Showing
8 changed files
with
98 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish release to PyPI | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
|
||
env: | ||
# make sure the poetry creates the venv inside the workspace under .venv | ||
POETRY_VIRTUALENVS_IN_PROJECT: true | ||
|
||
jobs: | ||
build: | ||
name: Publish from release | ||
uses: qua-platform/qualibrate/.github/workflows/reusable-build.yaml@main | ||
|
||
release: | ||
name: Release package to PyPi | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
permissions: | ||
id-token: write | ||
contents: read | ||
checks: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# This is necessary so that we have the tags. | ||
fetch-depth: 0 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: dist | ||
merge-multiple: true | ||
pattern: python-package-* | ||
|
||
- name: Publish distribution to PyPI | ||
uses: pypa/[email protected] | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule qualibrate-app
deleted from
bb58d3
Submodule qualibrate-core
deleted from
32b3e5
Submodule qualibrate-runner
deleted from
f5d9b0