Skip to content

Upgrade to .NET 9.

Upgrade to .NET 9. #93

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
branches: [ master ]
paths-ignore:
- '**/**.md'
- '.github/**'
jobs:
publish:
name: Publish the app
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Publish
run: |
dotnet restore
dotnet publish -c release -r win-x64 -p:PublishDir="$GITHUB_WORKSPACE/bin/release/win-x64" -p:PublishSingleFile=true --sc
rm -f $GITHUB_WORKSPACE/bin/release/win-x64/aspnetcorev2_inprocess.dll
- name: Install Zip
uses: montudor/action-zip@v1
- name: Create Zip
run: |
zip -qq -r GOG-win-x64.zip win-x64/*
working-directory: bin/release
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
files: bin/release/*.zip