From f24943a0601560c4e6ccc94034622a27c2aa0ae6 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 19 Apr 2023 00:58:27 +0800 Subject: ✨添加CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yml 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 -- cgit v1.2.3-70-g09d2