Skip to content

Commit

Permalink
build(cd): fix release job
Browse files Browse the repository at this point in the history
* install (always) `cosign` latest release
* when `cosign` cached, manually add to PATH
* change release action parameters
  • Loading branch information
andros21 committed Jul 10, 2022
1 parent 1e9b41b commit 93c300b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,30 @@ jobs:
with:
path: ~/.cosign
key: ${{ runner.os }}-cosign-${{ steps.cosign-version.outputs.latest }}
- name: add cosign to path
if: steps.cosign-cache.outputs.cache-hit == 'true'
run: |
echo "HOME=$HOME" >> $GITHUB_ENV
echo "PATH=$PATH:$HOME/.cosign" >> $GITHUB_ENV
- name: install cosign
if: steps.cosign-cache.outputs.cache-hit != 'true'
uses: sigstore/cosign-installer@372f03d876de9bfec5079d00fc6cd2485af9a026
with:
cosign-release: ${{ steps.cosign-version.outputs.latest }}
- name: cosign artifacts
env:
COSIGN_EXPERIMENTAL: 1
run: .github/workflows/cd.sh cosign
- name: release artifacts
uses: softprops/action-gh-release@6232f0b438cb856c39d14f8743e3a7c99fc879af
with:
name: rustracer ${GITHUB_REF_NAME}
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
fail_on_unmatched_files: true
files: |
rustracer-${GITHUB_REF_NAME}-x86_64-unknown-linux-*.tar.gz
rustracer-${GITHUB_REF_NAME}-x86_64-unknown-linux-*.tar.gz-keyless.pem
rustracer-${GITHUB_REF_NAME}-x86_64-unknown-linux-*.tar.gz-keyless.sig
rustracer-${GITHUB_REF_NAME}_checksums_sha256.txt
rustracer-${GITHUB_REF_NAME}_checksums_sha256.txt-keyless.pem
rustracer-${GITHUB_REF_NAME}_checksums_sha256.txt-keyless.sig
rustracer-*.tar.gz
rustracer-*.txt
rustracer-*.pem
rustracer-*.sig
#cratesio:
#name: cratesio
#runs-on: ubuntu-latest
Expand Down

0 comments on commit 93c300b

Please sign in to comment.