-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub workflow for uploading to PyPI
- Loading branch information
1 parent
ed13306
commit 3cd3460
Showing
2 changed files
with
39 additions
and
1 deletion.
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,38 @@ | ||
--- | ||
name: "Release" | ||
on: "workflow_dispatch" | ||
jobs: | ||
build: | ||
name: "Build" | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- name: "Check out repository" | ||
uses: "actions/checkout@v4" | ||
- name: "Set up Python" | ||
uses: "actions/setup-python@v4" | ||
with: | ||
python-version: "3.9" | ||
- name: "Build distribution packages" | ||
run: make package-check | ||
- name: "Save distribution directory" | ||
uses: "actions/upload-artifact@v3" | ||
with: | ||
name: "distribution" | ||
path: | | ||
dist | ||
upload: | ||
name: "Upload" | ||
needs: "build" | ||
runs-on: "ubuntu-22.04" | ||
environment: "release" | ||
permissions: | ||
id-token: "write" | ||
steps: | ||
- name: "Restore distribution directory" | ||
uses: "actions/download-artifact@v3" | ||
with: | ||
name: "distribution" | ||
path: | | ||
dist | ||
- name: "Upload distribution packages to PyPI" | ||
uses: "pypa/gh-action-pypi-publish@release/v1" |
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