From b7badb2bb0c9e4463ab1ffb2b189ffb762e1c8f0 Mon Sep 17 00:00:00 2001 From: SherkeyXD <57581480+SherkeyXD@users.noreply.github.com> Date: Sun, 1 Dec 2024 13:08:37 +0800 Subject: [PATCH] ci: update workflow version --- .github/workflows/publish.yml | 56 ++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 93cee75..cb06dac 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,28 +1,30 @@ -name: Publish to Pypi - -on: - push: - tags: - - "v*.*.*" - workflow_dispatch: - -jobs: - build-and-publish: - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Setup Python 3.10 - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - - name: Setup Poetry - uses: Gr1N/setup-poetry@v8 - - - name: Build and Publish - run: | - poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} - poetry publish --build +name: Publish to Pypi + +on: + push: + tags: + - "v*.*.*" + workflow_dispatch: + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + with: + show-progress: false + + - name: Setup Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Setup Poetry + uses: Gr1N/setup-poetry@v9 + + - name: Build and Publish + run: | + poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} + poetry publish --build \ No newline at end of file