@@ -51,10 +51,10 @@ jobs:
51
51
- { os: "windows-latest", target: "x86_64-pc-windows-msvc", artifact_prefix: "windows" }
52
52
- { os: "ubuntu-latest", target: "x86_64-unknown-linux-gnu", artifact_prefix: "linux", }
53
53
- { os: "ubuntu-latest", target: "x86_64-unknown-linux-musl", artifact_prefix: "linux-musl", }
54
- - { os: "ubuntu-latest", target: "aarch64-unknown-linux-gnu", artifact_prefix: "aarch64-gnu", use-cross: true, test-bin: "--bin jwt-ui " }
55
- - { os: "ubuntu-latest", target: "aarch64-unknown-linux-musl", artifact_prefix: "aarch64-musl", use-cross: true, test-bin: "--bin jwt-ui " }
56
- - { os: "ubuntu-latest", target: "arm-unknown-linux-gnueabihf", artifact_prefix: "arm-gnu", use-cross: true, test-bin: "--bin jwt-ui " }
57
- - { os: "ubuntu-latest", target: "arm-unknown-linux-musleabihf", artifact_prefix: "arm-musl", use-cross: true, test-bin: "--bin jwt-ui " }
54
+ - { os: "ubuntu-latest", target: "aarch64-unknown-linux-gnu", artifact_prefix: "aarch64-gnu", use-cross: true, test-bin: "--bin jwtui " }
55
+ - { os: "ubuntu-latest", target: "aarch64-unknown-linux-musl", artifact_prefix: "aarch64-musl", use-cross: true, test-bin: "--bin jwtui " }
56
+ - { os: "ubuntu-latest", target: "arm-unknown-linux-gnueabihf", artifact_prefix: "arm-gnu", use-cross: true, test-bin: "--bin jwtui " }
57
+ - { os: "ubuntu-latest", target: "arm-unknown-linux-musleabihf", artifact_prefix: "arm-musl", use-cross: true, test-bin: "--bin jwtui " }
58
58
59
59
steps :
60
60
- name : Checkout repository
@@ -121,10 +121,10 @@ jobs:
121
121
shell : bash
122
122
run : |
123
123
cd target/${{ matrix.job.target }}/release
124
- BINARY_NAME=jwt-ui .exe
124
+ BINARY_NAME=jwtui .exe
125
125
# strip the binary
126
126
strip $BINARY_NAME
127
- RELEASE_NAME=jwt-ui -${{ matrix.job.artifact_prefix }}
127
+ RELEASE_NAME=jwtui -${{ matrix.job.artifact_prefix }}
128
128
tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME
129
129
# create sha checksum files
130
130
certutil -hashfile $RELEASE_NAME.tar.gz sha256 | grep -E [A-Fa-f0-9]{64} > $RELEASE_NAME.sha256
@@ -141,10 +141,10 @@ jobs:
141
141
aarch64-*-linux-*) STRIP="aarch64-linux-gnu-strip" ;;
142
142
esac;
143
143
cd target/${{ matrix.job.target }}/release
144
- BINARY_NAME=jwt-ui
144
+ BINARY_NAME=jwtui
145
145
# strip the binary
146
146
"$STRIP" "$BINARY_NAME"
147
- RELEASE_NAME=jwt-ui -${{ matrix.job.artifact_prefix }}
147
+ RELEASE_NAME=jwtui -${{ matrix.job.artifact_prefix }}
148
148
tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME
149
149
# create sha checksum files
150
150
shasum -a 256 $RELEASE_NAME.tar.gz > $RELEASE_NAME.sha256
@@ -171,7 +171,7 @@ jobs:
171
171
172
172
publish-package-formula :
173
173
needs : [build-release]
174
- name : Update homebrew & choco formulas
174
+ name : Update homebrew & scoop formulas
175
175
runs-on : ubuntu-latest
176
176
steps :
177
177
- name : Checkout repository
@@ -188,11 +188,11 @@ jobs:
188
188
- name : Set release assets and version
189
189
shell : bash
190
190
run : |
191
- macos_sha="$(cat ./artifacts/jwt-ui -macos.sha256 | awk '{print $1}')"
191
+ macos_sha="$(cat ./artifacts/jwtui -macos.sha256 | awk '{print $1}')"
192
192
echo "MACOS_SHA=$macos_sha" >> $GITHUB_ENV
193
- linux_sha="$(cat ./artifacts/jwt-ui -linux.sha256 | awk '{print $1}')"
193
+ linux_sha="$(cat ./artifacts/jwtui -linux.sha256 | awk '{print $1}')"
194
194
echo "LINUX_SHA=$linux_sha" >> $GITHUB_ENV
195
- windows_sha="$(cat ./artifacts/jwt-ui -windows.sha256 | awk '{print $1}')"
195
+ windows_sha="$(cat ./artifacts/jwtui -windows.sha256 | awk '{print $1}')"
196
196
echo "WINDOWS_SHA=$windows_sha" >> $GITHUB_ENV
197
197
release_version="$(cat ./artifacts/release-version)"
198
198
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
@@ -212,33 +212,14 @@ jobs:
212
212
# push to Git
213
213
git config --global user.email "[email protected] "
214
214
git config --global user.name "deepu105"
215
- git clone https://deepu105:${{ secrets.TAP_GITHUB_TOKEN }}@github.com/jwt-rs/homebrew-jwt-ui.git --branch=main brew
215
+ git clone https://deepu105:${{ secrets.BREWTAP_GITHUB_TOKEN }}@github.com/jwt-rs/homebrew-jwt-ui.git --branch=main brew
216
216
rm brew/Formula/jwt-ui.rb
217
217
cp jwt-ui.rb brew/Formula
218
218
cd brew
219
219
git add .
220
220
git diff-index --quiet HEAD || git commit -am "Update formula for jwt-ui release ${{ env.RELEASE_VERSION }}"
221
221
git push origin main
222
222
223
- - name : Execute chocolatey packaging script
224
- run : |
225
- # run packaging script
226
- python "./deployment/chocolatey/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/chocolatey/jwt-ui.nuspec.template" "./jwt-ui.nuspec" ${{ env.WINDOWS_SHA }}
227
- python "./deployment/chocolatey/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/chocolatey/chocolateyinstall.ps1.template" "./chocolateyinstall.ps1" ${{ env.WINDOWS_SHA }}
228
-
229
- # push to Git
230
- git config --global user.email "[email protected] "
231
- git config --global user.name "deepu105"
232
- git clone https://deepu105:${{ secrets.CHOCO_GITHUB_TOKEN }}@github.com/jwt-rs/choco-jwt-ui --branch=main choco
233
- rm choco/jwt-ui.nuspec
234
- rm choco/tools/chocolateyinstall.ps1
235
- cp jwt-ui.nuspec choco/jwt-ui.nuspec
236
- cp chocolateyinstall.ps1 choco/tools/chocolateyinstall.ps1
237
- cd choco
238
- git add .
239
- git diff-index --quiet HEAD || git commit -am "Update package for jwt-ui release ${{ env.RELEASE_VERSION }}"
240
- git push origin main
241
-
242
223
- name : Execute Scoop packaging script
243
224
run : |
244
225
# run packaging script
@@ -247,7 +228,7 @@ jobs:
247
228
# push to Git
248
229
git config --global user.email "[email protected] "
249
230
git config --global user.name "deepu105"
250
- git clone https://deepu105:${{ secrets.CHOCO_GITHUB_TOKEN }}@github.com/jwt-rs/scoop-jwt-ui --branch=main scoop
231
+ git clone https://deepu105:${{ secrets.SCOOP_GITHUB_TOKEN }}@github.com/jwt-rs/scoop-jwt-ui --branch=main scoop
251
232
rm scoop/jwt-ui.json
252
233
cp jwt-ui.json scoop/jwt-ui.json
253
234
cd scoop
0 commit comments