aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Perez <perezd@users.noreply.github.com>2022-01-28 13:06:02 -0800
committerLiam Miller-Cushon <cushon@google.com>2022-01-28 14:07:35 -0800
commit9da00eb6046dd725cc124c50d04eda6ccebd0e12 (patch)
tree4abda45936b4120c5df2975a8ced87e00e3f328f
parentda0ad7f608eac6ca06fb15d128f21bad05a091a3 (diff)
downloadgoogle-java-format-9da00eb6046dd725cc124c50d04eda6ccebd0e12.tar.gz
Update release.yml
-rw-r--r--.github/workflows/release.yml24
1 files changed, 10 insertions, 14 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9eee650..689f339 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -8,10 +8,10 @@ on:
required: true
jobs:
- define-release:
+ build-maven-jars:
runs-on: ubuntu-latest
permissions:
- contents: write
+ contents: read
steps:
- name: Setup Signing Key
run: |
@@ -20,17 +20,14 @@ jobs:
- name: Checkout
uses: actions/checkout@2.4.0
-
+
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
cache: 'maven'
-
- - name: Run Tests
- run: mvn verify
-
+
- name: Bump Version Number
env:
NEW_VERSION: ${{ github.events.input.version }}
@@ -38,16 +35,15 @@ jobs:
mvn versions:set versions:commit -DnewVersion="${NEW_VERSION}"
git ls-files | grep 'pom.xml$' | xargs git add
git commit -m "Release google-java-format ${NEW_VERSION}"
- git tag "v${NEW_VERSION}"
- git push origin "v${NEW_VERSION}"
-
- - name: Create Maven Jars
- run: mvn clean deploy
+ git push
+
+ - name: Build Jars
+ run: mvn clean verify gpg:sign -DskipTests=true -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}"
- - name: Define Release Entry
+ - name: Add Jars to Release Entry
uses: softprops/action-gh-release@v1
with:
draft: true
name: ${{ github.events.input.version }}
tag_name: "v${{ github.events.input.version }}"
-
+ files: core/target/google-java-format-*.jar