Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cenerate a checksum file for release artifacts and sign it #756

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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