ci: create release instead

This commit is contained in:
Mark Joshwel 2023-06-03 12:08:19 +00:00 committed by GitHub
parent 7049a64ae3
commit 42e3c2c221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,14 @@
name: publish (slsa 3) name: release (slsa 3)
on: on:
workflow_dispatch: push:
release: tags:
types: [created] - '*'
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
outputs: outputs:
hashes: ${{ steps.hash.outputs.hashes }} hashes: ${{ steps.hash.outputs.hashes }}
@ -31,8 +33,9 @@ jobs:
HASHES=$(sha256sum * | base64 -w0) HASHES=$(sha256sum * | base64 -w0)
echo "hashes=$HASHES" >> "$GITHUB_OUTPUT" echo "hashes=$HASHES" >> "$GITHUB_OUTPUT"
- name: upload artifacts - name: release
uses: softprops/action-gh-release@v0.1.15 uses: softprops/action-gh-release@v0.1.15
if: startsWith(github.ref, 'refs/tags/')
with: with:
files: | files: |
dist/*.whl dist/*.whl