Skip to content

Update ci.yml: upload artifact v4 #35

Update ci.yml: upload artifact v4

Update ci.yml: upload artifact v4 #35

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: windows-latest
env:
Solution_Name: "FreenetTray.sln"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.1
- name: Setup NuGET
uses: nuget/setup-nuget@v1
- name: NuGet Restore
run: nuget restore "%Solution_Name%"
shell: cmd
- name: Build the solution
run: msbuild /p:Configuration=Release /p:TargetFrameworkVersion="v4.8" /p:DebugSymbols=False "%Solution_Name%"
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 Tray'
description-url: 'https://freenetproject.org'
folder: 'bin/Release'
recursive: true
- name: Verify the signature
if: ${{ github.event_name != 'pull_request' }}
run: call "%programfiles(x86)%/Windows Kits/10/bin/10.0.22621.0/x86/signtool.exe" verify /v /pa "bin/Release/FreenetTray.exe"
shell: cmd
- name: Upload the installer as an artifact
uses: actions/upload-artifact@v4
if: ${{ github.event_name != 'pull_request' }}
with:
path: "bin/Release"
name: wintray