Skip to content

Commit c99f0e1

Browse files
authored
Merge pull request #27 from qupo1/ci
CI: some fixes
2 parents e067435 + d867636 commit c99f0e1

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: CI
23

34
on:
@@ -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: |
@@ -67,4 +65,3 @@ jobs:
6765
with:
6866
path: "Output/FreenetInstaller.exe"
6967
name: wininstaller-innosetup
70-

gradle/wrapper/gradle-wrapper.jar

-13.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)