File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 89
89
os : [ubuntu-latest, macos-latest, windows-latest]
90
90
env :
91
91
SUFFIX : ${{fromJson('{"ubuntu-latest":"linux-x86-64", "macos-latest":"darwin-arm64", "windows-latest":"windows-x86-64"}')[matrix.os]}}
92
+ EXTENSION : ${{ matrix.os == 'windows-latest' && '.exe' || '' }}
92
93
steps :
93
94
- name : " Check out repository"
94
95
uses : actions/checkout@v4
@@ -103,9 +104,9 @@ jobs:
103
104
- name : " Native"
104
105
run : mvn -Pnative -DskipTests package -pl core -am
105
106
- name : " Move outputs"
106
- run : cp core/target/google-java-format google-java-format_${{ env.SUFFIX }}
107
+ run : cp core/target/google-java-format${{ env.EXTENSION }} google-java-format_${{ env.SUFFIX }}${{ env.EXTENSION }}
107
108
- name : " Upload native-image"
108
109
env :
109
110
GH_TOKEN : ${{ github.token }}
110
111
GH_REPO : ${{ github.repository }}
111
- run : gh release upload "v${{ github.event.inputs.version }}" "google-java-format_${{ env.SUFFIX }}"
112
+ run : gh release upload "v${{ github.event.inputs.version }}" "google-java-format_${{ env.SUFFIX }}${{ env.EXTENSION }} "
You can’t perform that action at this time.
0 commit comments