Final prep release cleanup
* Be consistent with step naming
* Checkout the right ref for native exe builds
Needs the temporary tag hack to work with existing gradle expectations.
* Remove TODO now that it is known to be unneeded
-name: Prepare Release
+name: Prepare release
defaults:
run:
shell: bash -euo pipefail -O nullglob {0}
@@ -17,14 +17,14 @@ on:
jobs:
draft_release:
- name: Create Github Draft Release
+ name: Create Github draft release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
ref: '${{ github.event.inputs.ref }}'
- - name: Create Release
+ - name: Create release
run: >
gh release create
'${{ github.event.inputs.tag }}'
@@ -64,17 +64,14 @@ jobs:
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- # TODO unclear if `gpg --batch --import "$HOME/.gnupg/secring.gpg` is
- # needed here as well It's in the old Concourse code but there's no clear
- # indication as to why.
- - name: Setup Signing Key
+ - name: Set up signing key
run: mkdir -p "$HOME/.gnupg" && echo -n "$KEY" | base64 -d > "$HOME/.gnupg/secring.gpg"
env:
KEY: ${{ secrets.JAR_SIGNING_KEY }}
# Prefer env variables here rather than inline ${{ secrets.FOO }} to
# decrease the likelihood that secrets end up printed to stdout.
- - name: Setup Gradle Properties Secrets
+ - name: Set up secret gradle properties
run: |
mkdir -p "$HOME/.gradle"
envsubst >"$HOME/.gradle/gradle.properties" <<EOF
@@ -90,11 +87,11 @@ jobs:
RH_USER: ${{ secrets.RH_USER }}
RH_PASSWORD: ${{ secrets.RH_PASSWORD }}
- - name: Gradle publish
+ - name: Publish
run: ./gradlew publish
native_images:
- name: Build native images
+ name: Build native test server
needs: draft_release
strategy:
matrix:
@@ -113,7 +110,12 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2
with:
- fetch-depth: 0
+ ref: '${{ github.event.inputs.ref }}'
+
+ # See comment on temporary tag above. tldr: this is a local tag; never
+ # gets pushed
+ - name: Temporary tag
+ run: git tag '${{ github.event.inputs.tag }}'
- name: Set up Java
uses: actions/setup-java@v2
@@ -124,7 +126,7 @@ jobs:
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- - name: Build Native Image
+ - name: Build native test server
run: ./gradlew :temporal-test-server:build
# path ends in a wildcard because on windows the file ends in '.exe'
@@ -154,7 +156,7 @@ jobs:
# the root directory of the contents of the archive.
- name: Rename dirs
run: |
- version="$(sed 's/v//'<<<'${{ github.event.inputs.tag }}')"
+ version="$(sed 's/^v//'<<<'${{ github.event.inputs.tag }}')"
for dir in *; do mv "$dir" "temporal-test-server_${version}_${dir}"; done
- name: Tar (linux, macOS)
