-
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
Showing
1 changed file
with
45 additions
and
0 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,45 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Push Tag | ||
run: | | ||
git config user.name eya46 | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m ":bookmark: Release $(poetry version -s)" | ||
git tag ${{ env.TAG_NAME }} | ||
git push && git push --tags | ||
- name: Install poetry | ||
run: pipx install poetry | ||
shell: bash | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
architecture: "x64" | ||
cache: "poetry" | ||
|
||
- run: poetry install -E all | ||
shell: bash | ||
|
||
- name: Build Package | ||
run: | | ||
poetry build | ||
- name: Publish package to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |