Update build.gradle: gradle removed compile #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Checkout fred | |
uses: actions/checkout@v2 | |
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 | |
- uses: eskatos/gradle-command-action@v3 | |
with: | |
arguments: updateSetupFile | |
- name: Building the installer | |
run: | | |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" "FreenetInstall_InnoSetup.iss" | |
shell: cmd | |
# - name: Sign the installer | |
# uses: nextgens/authenticode-sign-action@v1.0.1 | |
# if: ${{ github.event_name != 'pull_request' }} | |
# with: | |
# certificate: '${{ secrets.CERTIFICATES }}' | |
# credentials: '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}' | |
# key-uri: "projects/fpi-codesign/locations/europe-west3/keyRings/code-signing/cryptoKeys/certificate/cryptoKeyVersions/1" | |
# timestamp-url: 'http://timestamp.comodoca.com' | |
# description: 'Freenet Installer' | |
# description-url: 'https://freenetproject.org' | |
# folder: "Output" | |
# recursive: true | |
# | |
# - name: Verify the signature | |
# if: ${{ github.event_name != 'pull_request' }} | |
# run: call "%programfiles(x86)%/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe" verify /v /pa "Output/FreenetInstaller.exe" | |
# shell: cmd | |
- name: Upload the installer as an artifact | |
uses: actions/upload-artifact@v4 | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
path: "Output/FreenetInstaller.exe" | |
name: wininstaller-innosetup | |