Skip to content

Commit

Permalink
Merge pull request #756 from ystia/technical/GH-755_Generate_a_checks…
Browse files Browse the repository at this point in the history
…um_file_for_release_artifacts_and_sign_it

Cenerate a checksum file for release artifacts and sign it
  • Loading branch information
loicalbertin committed Jul 13, 2021
2 parents e92a063 + b9c8a54 commit 27c2623
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,31 @@ jobs:
SKIP_TESTS=1 make dist
# Generate changelog
awk '{f=1} f{ if (/^## / && i++>=1) exit; else print $0}' CHANGELOG.md | tee CHANGELOG-for-version.md
# Move release artifacts for signing
mkdir -p dist/gh-release
mv dist/yorc-*.tgz dist/yorc-server*-distrib.zip dist/gh-release/
# Use a specific trusted commit (do not relie on tags that could evolve like v1)
- uses: tristan-weil/ghaction-checksum-sign-artifact@1d1a6873e7f53532850e8a6f03e790e063bae662
with:
path: 'dist/gh-release/*'
sign_key: '${{ secrets.YSTIA_BOT_SIGN_KEY }}'
sign_key_passphrase: '${{ secrets.YSTIA_BOT_SIGN_KEY_PASSPHRASE }}'
sign_key_fingerprint: 'CEC021997E92CADB298EFC8AFA71C23B880E40F9'
sign_keyserver: 'keys.openpgp.org'

- name: Create or Update Github Release draft
id: update_release
uses: loicalbertin/action-gh-release@080e2e752ac77817dcfd2e8809873bdc24817584
# Wait for a released version containg https://github.com/softprops/action-gh-release/pull/60
uses: softprops/action-gh-release@9729932bfb75c05ad1f6e3a729294e05abaa7001
with:
tag_name: ${{ env.TAG_NAME }}
body_path: CHANGELOG-for-version.md
name: ${{ env.TAG_NAME }}
prerelease: ${{ env.PRERELEASE }}
draft: true
files: |
dist/yorc-*.tgz
dist/yorc-server*-distrib.zip
dist/gh-release/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* Error submitting a SLURM job with no execution option ([GH-739](https://github.com/ystia/yorc/issues/739))
* Workflow with asynchronous action never stops after another step failure ([GH-733](https://github.com/ystia/yorc/issues/733))

### ENGINEERING

* Generate a checksum file for release artifacts and sign it ([GH-755](https://github.com/ystia/yorc/issues/755))

## 4.2.0-milestone.1 (May 06, 2021)

### ENHANCEMENTS
Expand Down

0 comments on commit 27c2623

Please sign in to comment.