-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (33 loc) · 1019 Bytes
/
dotnet-desktop.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
name: Build and Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: write # This grants write permissions to the contents scope
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: "latest_release"
jobs:
build_and_release:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build
run: dotnet build --configuration Release HellDivers2OneKeyStratagem.sln
- name: Pack files
run: |
cd bin
7Zip\7za.exe a -r ..\HellDivers2OneKeyStratagem.7z *
cd ..
- name: Delete release and tag
run: gh release delete ${{ env.RELEASE_TAG }} --cleanup-tag -y
continue-on-error: true
- name: Create a new tag and release
run: gh release create ${{ env.RELEASE_TAG }} --generate-notes
- name: Upload pack
run: gh release upload ${{ env.RELEASE_TAG }} HellDivers2OneKeyStratagem.7z --clobber