ci: create release instead
This commit is contained in:
parent
7049a64ae3
commit
42e3c2c221
13
.github/workflows/slsa-publish.yml
vendored
13
.github/workflows/slsa-publish.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue