Skip to content

GH action - automatic release #4

GH action - automatic release

GH action - automatic release #4

Workflow file for this run

name: test-release
on:
push:
tags:
- 'test-*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x' # SDK Version to use.
- run: dotnet test -c release
working-directory: ./procgov-tests
- run: dotnet publish -c release -r win-x86 --self-contained
working-directory: ./procgov
- run: dotnet publish -c release -r win-x64 --self-contained
working-directory: ./procgov
- name: Copy artifacts
run: |
New-Item -Type Directory -Path artifacts
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x86/publish/procgov.exe" -Destination "artifacts/procgov32.exe"
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x86/publish/procgov.pdb" -Destination "artifacts/procgov32.pdb"
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x64/publish/procgov.exe" -Destination "artifacts/procgov64.exe"
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x64/publish/procgov.pdb" -Destination "artifacts/procgov64.pdb"
- uses: actions/upload-artifact@v4
with:
name: procgov
path: artifacts/*
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.WINGET_GH_TOKEN }}"
automatic_release_tag: "test-release"
prerelease: true
files: |
artifacts/*