diff options
| author | 2023-04-19 00:58:27 +0800 | |
|---|---|---|
| committer | 2023-04-19 00:58:27 +0800 | |
| commit | f24943a0601560c4e6ccc94034622a27c2aa0ae6 (patch) | |
| tree | a95ed64264415c18839f653c9d4093b8c4bc36c1 /.github | |
| parent | a7eaf31cbf888a5f082e6e68834ac00604bcb47c (diff) | |
| download | HydroRoll-f24943a0601560c4e6ccc94034622a27c2aa0ae6.tar.gz HydroRoll-f24943a0601560c4e6ccc94034622a27c2aa0ae6.zip | |
✨添加CI
Diffstat (limited to '.github')
| -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 |
