aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Miller-Cushon <cushon@google.com>2022-01-31 16:26:49 -0800
committerGitHub <noreply@github.com>2022-01-31 16:26:49 -0800
commitf72191b67add34474644e6eb65b4b5295e1b8446 (patch)
tree514218030c4a9066584d48a76ac182559d963b21
parent69799747b38ad42bf51ad4c2e67f2f8a12bd8a17 (diff)
downloadgoogle-java-format-f72191b67add34474644e6eb65b4b5295e1b8446.tar.gz
Update release.yml
Tag release commits
-rw-r--r--.github/workflows/release.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7bf270b..2c5315d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -40,9 +40,10 @@ jobs:
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
git commit -m "Release google-java-format ${{ github.event.inputs.version }}"
+ git tag "v${{ github.event.inputs.version }}"
echo "TARGET_COMMITISH=$(git rev-parse HEAD)" >> $GITHUB_ENV
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/google/google-java-format.git
- git push origin "${{ github.event.inputs.version }}"
+ git push origin "v${{ github.event.inputs.version }}"
- name: Build Jars
run: mvn --no-transfer-progress clean verify gpg:sign -DskipTests=true -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}"