Skip to content

Update dotnet.yml

Update dotnet.yml #28

Workflow file for this run

name: .NET
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Publish
run: dotnet publish --configuration Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
- name: Easy Zip Files
uses: vimtor/action-zip@v1
with:
files: bin/Release/net7.0/win-x64/publish/
dest: 'November-Pirates-win-${{ github.ref_name }}.zip'
- name: GH Release
uses: softprops/[email protected]
with:
files: 'November-Pirates-win-${{ github.ref_name }}*'
itch:
runs-on: ubuntu-latest
environment: itch
needs: build
steps:
- name: Itch.io - Publish
uses: KikimoraGames/[email protected]
with:
butlerApiKey: ${{ secrets.BUTLER_CREDENTIALS }}
gameData: 'bin/Release/net7.0/win-x64/publish/November-Pirates-win-${{ github.ref_name }}.zip'
itchUsername: nhawdge
itchGameId: november-pirates
buildChannel: windows
buildNumber: ${{ github.ref_name }}