From 42e3c2c221b48d0dfc9c36366127d23e48145746 Mon Sep 17 00:00:00 2001 From: Mark Joshwel <89562141+markjoshwel@users.noreply.github.com> Date: Sat, 3 Jun 2023 12:08:19 +0000 Subject: [PATCH] ci: create release instead --- .github/workflows/slsa-publish.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/slsa-publish.yml b/.github/workflows/slsa-publish.yml index d14beea..dc633cb 100644 --- a/.github/workflows/slsa-publish.yml +++ b/.github/workflows/slsa-publish.yml @@ -1,12 +1,14 @@ -name: publish (slsa 3) +name: release (slsa 3) on: - workflow_dispatch: - release: - types: [created] + push: + tags: + - '*' jobs: build: runs-on: ubuntu-latest + permissions: + contents: write outputs: hashes: ${{ steps.hash.outputs.hashes }} @@ -31,8 +33,9 @@ jobs: HASHES=$(sha256sum * | base64 -w0) echo "hashes=$HASHES" >> "$GITHUB_OUTPUT" - - name: upload artifacts + - name: release uses: softprops/action-gh-release@v0.1.15 + if: startsWith(github.ref, 'refs/tags/') with: files: | dist/*.whl