-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b57a8f2
commit 0121e1f
Showing
2 changed files
with
34 additions
and
4 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,33 @@ | ||
on: | ||
release: | ||
types: [published] # releases and pre-releases (release candidates) | ||
|
||
jobs: | ||
publish-pypi: | ||
runs-on: ubuntu-latest | ||
|
||
# https://docs.pypi.org/trusted-publishers/using-a-publisher/ | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
# Specifying a GitHub environment is optional, but strongly encouraged | ||
environment: release | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine build | ||
- name: Build | ||
run: python -m build | ||
|
||
- name: Publish | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
name: unitary | ||
|
||
on: | ||
pull_request: | ||
push: # all | ||
push: | ||
|
||
jobs: | ||
unitary: | ||
|