-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (44 loc) · 1.74 KB
/
Copy pathrelease.yml
File metadata and controls
45 lines (44 loc) · 1.74 KB
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
on:
push:
tags:
- 'v*'
jobs:
gh_tagged_release:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.301'
- name: Checkout
uses: actions/checkout@v7
- name: Build and test
run: dotnet test src/SimpleLevelEditor.slnx -c Release
- name: Build optimized release
run: >
dotnet publish src/SimpleLevelEditor/SimpleLevelEditor.csproj
-p:PublishTrimmed=True
-p:EnableCompressionInSingleFile=True
-p:PublishReadyToRun=False
-p:PublishProtocol=FileSystem
-p:TargetFramework=net8.0
-p:RuntimeIdentifier=win-x64
-p:Platform=x64
-p:Configuration=Release
-p:PublishDir=release-win-x64
-p:PublishSingleFile=True
-p:SelfContained=True
-p:PublishMethod=SELF_CONTAINED
- name: Install zip
uses: montudor/action-zip@v1
- name: Zip output
run: zip -qq -r simple-level-editor-win-x64.zip release-win-x64
working-directory: src/SimpleLevelEditor
- name: Create release
id: create_release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
files: src/SimpleLevelEditor/simple-level-editor-win-x64.zip