Skip to content

Commit 0bc08ab

Browse files
committed
Update release.yml
1 parent 4e9aa25 commit 0bc08ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ jobs:
8787
strategy:
8888
matrix:
8989
os: [ubuntu-latest, macos-latest, windows-latest]
90+
env:
91+
SUFFIX: ${{fromJson('{"ubuntu-latest":"linux-x86_64", "macos-latest":"darwin-arm64", "windows-latest":"windows_x86-64"}')[matrix.os]}}
9092
steps:
9193
- name: "Check out repository"
9294
uses: actions/checkout@v4
@@ -101,9 +103,9 @@ jobs:
101103
- name: "Native"
102104
run: mvn -Pnative -DskipTests package -pl core -am
103105
- name: "Move outputs"
104-
run: cp core/target/google-java-format google-java-format-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}
106+
run: cp core/target/google-java-format google-java-format-${{ env.SUFFIX }}
105107
- name: "Upload native-image"
106108
env:
107109
GH_TOKEN: ${{ github.token }}
108110
GH_REPO: ${{ github.repository }}
109-
run: gh release upload "v${{ github.event.inputs.version }}" "google-java-format-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}"
111+
run: gh release upload "v${{ github.event.inputs.version }}" "google-java-format-${{ env.SUFFIX }}"

0 commit comments

Comments
 (0)