Skip to content

Commit

Permalink
remove unused instruction for provenance generation and changed how h…
Browse files Browse the repository at this point in the history
…ashes are generated
  • Loading branch information
eaescob committed Jun 28, 2024
1 parent 9e7eca9 commit 7d215d6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ jobs:
- name: Generate hashes
id: hash
run: |
cd dist && echo "::set-output name=hashes::$(sha256sum * | base64 -w0)" >> "$GITHUB_OUTPUT"
#cd dist && echo "::set-output name=hashes::$(sha256sum * | base64 -w0)" >> "$GITHUB_OUTPUT"
cd dist
HASHES=$(sha256sum * | base64 -w0)
echo "hashes=$HASHES" >> "$GITHUB_OUTPUT"
- name: Upload dist
uses: actions/[email protected]
with:
Expand All @@ -58,7 +61,6 @@ jobs:
with:
base64-subjects: "${{ needs.build.outputs.hashes }}"
upload-assets: true
compile-generator: true # Workaround for https://github.com/slsa-framework/slsa-github-generator/issues/1163

publish:
needs: ["build", "provenance"]
Expand All @@ -75,10 +77,10 @@ jobs:
path: "dist/"

- name: Upload to releases
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
gh release upload ${{ github.ref_name }} dist/* --repo ${{ github.repository }}
uses: softprops/[email protected]
with:
files: |
dist/*
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1.9.0
Expand Down

0 comments on commit 7d215d6

Please sign in to comment.