Bump version to 0.3.2 (#29) #11
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
name: "Release reproducible (r10e) r10edocker binaries" | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
# Must match "project_name" in "config.json" | |
PROJECT_NAME: go-r10e-docker | |
jobs: | |
release-r10e-binaries: | |
name: "Release r10e r10edocker" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v3 | |
with: | |
# Fetch all history for all tags and branches | |
fetch-depth: 0 | |
- name: "Set env" | |
run: | | |
set -euxo pipefail | |
# set RELEASE_VERSION as tag version | |
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV | |
- name: "Build r10e apps at tagged revision" | |
run: | | |
set -euxo pipefail | |
cd ${{ github.workspace }} | |
git checkout tags/v"${RELEASE_VERSION}" -b v"${RELEASE_VERSION}" | |
make r10e-build | |
- name: "Ensure app version matches tag version" | |
run: | | |
set -euxo pipefail | |
cd ${{ github.workspace }} | |
gunzip -c ./r10e-build/r10edocker-linux-amd64.gz >r10edocker.tmp | |
chmod +x r10edocker.tmp | |
APP_VERSION="$(./r10edocker.tmp --version | rev | cut -f1 -d' ' | rev)" | |
if [ "$APP_VERSION" != "$RELEASE_VERSION" ]; then | |
echo "error: app version must equal tagged release version" | |
exit 1 | |
fi | |
- name: "Release versioned" | |
# v1.11.1 | |
uses: ncipollo/release-action@4c75f0f2e4ae5f3c807cf0904605408e319dcaac | |
with: | |
allowUpdates: true | |
generateReleaseNotes: true | |
artifacts: "r10e-build/*" | |
token: ${{ secrets.GITHUB_TOKEN }} |