-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (53 loc) · 1.76 KB
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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: 8.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/net8.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 }}*'
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: 'November-Pirates-win-${{ github.ref_name }}.zip'
path: 'November-Pirates-win-${{ github.ref_name }}.zip'
retention-days: 1
itch:
runs-on: ubuntu-latest
environment: itch
needs: build
steps:
- name: Download a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: 'November-Pirates-win-${{ github.ref_name }}.zip'
path: 'November-Pirates-win-${{ github.ref_name }}.zip'
- name: Itch.io - Publish
uses: KikimoraGames/[email protected]
with:
butlerApiKey: ${{ secrets.BUTLER_CREDENTIALS }}
gameData: 'November-Pirates-win-${{ github.ref_name }}.zip'
itchUsername: nhawdge
itchGameId: november-pirates
buildChannel: windows
buildNumber: ${{ github.ref_name }}