-
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.
- Loading branch information
FelixAbrahamsson
committed
Jul 12, 2023
1 parent
16c91bd
commit f2b9138
Showing
2 changed files
with
36 additions
and
2 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,34 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set PATH | ||
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
- name: Install dependencies | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python - --version 1.4.2 | ||
poetry install | ||
- name: Build wheels | ||
run: | | ||
poetry version $(git tag --points-at HEAD) | ||
poetry build | ||
- name: Upload | ||
env: | ||
USERNAME: __token__ | ||
PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
poetry publish --username=$USERNAME --password=$PASSWORD |
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