File tree Expand file tree Collapse file tree 2 files changed +13
-16
lines changed
Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 1+ ---
12name : CI
23
34on :
@@ -10,33 +11,30 @@ jobs:
1011
1112 steps :
1213 - name : Checkout
13- uses : actions/checkout@v2
14+ uses : actions/checkout@v4
1415 with :
1516 fetch-depth : 0
1617
1718 - name : Checkout fred
18- uses : actions/checkout@v2
19+ uses : actions/checkout@v4
1920 with :
2021 repository : ' hyphanet/fred'
2122 fetch-depth : 0
2223 path : ' fred'
2324
2425 - name : Download fred from the Github Release
25- uses : i3h/download-release-asset@v1.1.0
26- with :
27- owner : " hyphanet"
28- repo : " fred"
29- tag : " latest"
30- file : " freenet.jar"
31-
32- - uses : eskatos/gradle-command-action@v3
33- with :
34- arguments : unzip
26+ shell : pwsh
27+ run : |
28+ $json = curl.exe "https://api.github.com/repos/hyphanet/fred/releases/latest" | ConvertFrom-Json
29+ foreach ($asset in $json.assets){if ($asset.name -eq "freenet.jar"){$url = $asset.browser_download_url.ToString()}}
30+ curl.exe --output freenet.jar --location $url
3531
32+ - uses : gradle/actions/wrapper-validation@v4
3633
37- - uses : eskatos/gradle-command-action@v3
38- with :
39- arguments : updateSetupFile
34+ - name : Unzip and update setup files
35+ run : |
36+ .\gradlew.bat unzip
37+ .\gradlew.bat updateSetupFile
4038
4139 - name : Building the installer
4240 run : |
6765 with :
6866 path : " Output/FreenetInstaller.exe"
6967 name : wininstaller-innosetup
70-
You can’t perform that action at this time.
0 commit comments