From 85540b1723c8c112d6c948b377759512d44efd2a Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 17 Jan 2025 20:21:17 +0100 Subject: [PATCH] release on tag with wheel files --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0806464e3..593453988 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -167,3 +167,21 @@ jobs: build_dir: ../www env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + release: + needs: build + if: contains(needs.*.result, 'success') && contains(github.ref, '/tags/v') + runs-on: ubuntu-latest + steps: + - name: download artifact + uses: actions/download-artifact@v4 + with: + pattern: pypangolin_wheel_* + merge-multiple: true + path: ./ + + - name: create release + uses: ncipollo/release-action@v1 + with: + artifacts: pypangolin-*.whl + artifactErrorsFailBuild: true