diff options
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8542a3b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Release
+
+on:
+ push:
+ tags:
+ - "v*"
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install poetry
+ run: pipx install poetry
+ shell: bash
+ - uses: actions/setup-python@v4
+ with:
+ python-version: "3.9"
+ architecture: "x64"
+ cache: "poetry"
+ - run: poetry install
+ shell: bash
+
+ - run: poetry config pypi-token.pypi "$PYPI_TOKEN"
+ shell: bash
+ env:
+ PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
+
+ - run: poetry publish --build
+ shell: bash
\ No newline at end of file |
