Skip to content

Release

Release #6

Workflow file for this run

name: Release
on:
workflow_dispatch:
release:
types: [published]
jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
cache: true
cache-dependency-path: 'CSAUSBTool.CrossPlatform.Desktop/packages.lock.json'
- name: Restore dependencies
run: dotnet restore
- name: Build Windows
run: dotnet publish --no-restore -c Release CSAUSBTool.CrossPlatform.Desktop/CSAUSBTool.CrossPlatform.Desktop.csproj
- name: Azure Trusted Signing
uses: azure/trusted-signing-action@v0.4.0
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
endpoint: ${{ secrets.AZURE_ENDPOINT }}
trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }}
files-folder: ${{ github.workspace }}\CSAUSBTool.CrossPlatform.Desktop\bin\Release\net8.0\win-x64\publish
files-folder-filter: exe
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256
- name: Upload Windows Signed Binaries
uses: actions/upload-artifact@v4
with:
name: windows
path: ${{ github.workspace }}\CSAUSBTool.CrossPlatform.Desktop\bin\Release\net8.0\win-x64\publish
release-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
cache: true
cache-dependency-path: 'CSAUSBTool.CrossPlatform.Desktop/packages.lock.json'
- name: Restore dependencies
run: dotnet restore
- name: Build Linux
run: dotnet publish --runtime linux-x64 --no-restore -c Release CSAUSBTool.CrossPlatform.Desktop/CSAUSBTool.CrossPlatform.Desktop.csproj
- name: Upload Linux Binaries
uses: actions/upload-artifact@v4
with:
name: linux
path: ${{ github.workspace }}\CSAUSBTool.CrossPlatform.Desktop\bin\Release\net8.0\linux-x64\publish
release-macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
cache: true
cache-dependency-path: 'CSAUSBTool.CrossPlatform.Desktop/packages.lock.json'
- name: Restore dependencies
run: dotnet restore
- name: Build OSX Intel
run: dotnet publish --runtime osx-x64 --no-restore -c Release CSAUSBTool.CrossPlatform.Desktop/CSAUSBTool.CrossPlatform.Desktop.csproj
- name: Build OSX Apple
run: dotnet publish --runtime osx-arm64 --no-restore -c Release CSAUSBTool.CrossPlatform.Desktop/CSAUSBTool.CrossPlatform.Desktop.csproj
- name: Upload Intel Binaries
uses: actions/upload-artifact@v4
with:
name: osx-apple
path: ${{ github.workspace }}\CSAUSBTool.CrossPlatform.Desktop\bin\Release\net8.0\osx-x64\publish
- name: Upload Apple Binaries
uses: actions/upload-artifact@v4
with:
name: osx-apple
path: ${{ github.workspace }}\CSAUSBTool.CrossPlatform.Desktop\bin\Release\net8.0\osx-arm64\publish