Skip to content

Commit

Permalink
Merge pull request #27 from qupo1/ci
Browse files Browse the repository at this point in the history
CI: some fixes
  • Loading branch information
ArneBab authored Jan 6, 2025
2 parents e067435 + d867636 commit c99f0e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CI

on:
Expand All @@ -10,33 +11,30 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Checkout fred
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: 'hyphanet/fred'
fetch-depth: 0
path: 'fred'

- name: Download fred from the Github Release
uses: i3h/download-release-asset@v1.1.0
with:
owner: "hyphanet"
repo: "fred"
tag: "latest"
file: "freenet.jar"

- uses: eskatos/gradle-command-action@v3
with:
arguments: unzip
shell: pwsh
run: |
$json = curl.exe "https://api.github.com/repos/hyphanet/fred/releases/latest" | ConvertFrom-Json
foreach ($asset in $json.assets){if ($asset.name -eq "freenet.jar"){$url = $asset.browser_download_url.ToString()}}
curl.exe --output freenet.jar --location $url
- uses: gradle/actions/wrapper-validation@v4

- uses: eskatos/gradle-command-action@v3
with:
arguments: updateSetupFile
- name: Unzip and update setup files
run: |
.\gradlew.bat unzip
.\gradlew.bat updateSetupFile
- name: Building the installer
run: |
Expand Down Expand Up @@ -67,4 +65,3 @@ jobs:
with:
path: "Output/FreenetInstaller.exe"
name: wininstaller-innosetup

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.

0 comments on commit c99f0e1

Please sign in to comment.