Merge pull request #2885 from AkihiroSuda/prepare-v1.7.5 #60
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://github.com/containerd/nerdctl/blob/main/MAINTAINERS_GUIDE.md for how to make a release. | |
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
- 'test-action-release-*' | |
env: | |
GO111MODULE: on | |
jobs: | |
release: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: "Compile binaries" | |
run: make artifacts | |
- name: "SHA256SUMS" | |
run: | | |
( cd _output; sha256sum nerdctl-* ) | tee /tmp/SHA256SUMS | |
mv /tmp/SHA256SUMS _output/SHA256SUMS | |
- name: "The sha256sum of the SHA256SUMS file" | |
run: (cd _output; sha256sum SHA256SUMS) | |
- name: "Prepare the release note" | |
run: | | |
shasha=$(sha256sum _output/SHA256SUMS | awk '{print $1}') | |
cat <<-EOF | tee /tmp/release-note.txt | |
$(hack/generate-release-note.sh) | |
- - - | |
The binaries were built automatically on GitHub Actions. | |
The build log is available for 90 days: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
The sha256sum of the SHA256SUMS file itself is \`${shasha}\` . | |
- - - | |
Release manager: [ADD YOUR NAME HERE] (@[ADD YOUR GITHUB ID HERE]) | |
EOF | |
- name: "Create release" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
tag="${GITHUB_REF##*/}" | |
gh release create -F /tmp/release-note.txt --draft --title "${tag}" "${tag}" _output/* |