Repository navigation
79 lines (67 loc) · 2.43 KB
/
Copy pathbuild.yml
File metadata and controls
79 lines (67 loc) · 2.43 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build
on:
push:
branches: [ "master" ]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Get Version
id: version
uses: paulhatch/semantic-version@v5.3.0
with:
tag_prefix: "v"
namespace: beta
debug: true
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
10.0.x
- name: Build
run: dotnet build "MouseTrap/MouseTrap.csproj" -c Release -o ./dist
- name: Create Zip
uses: vimtor/action-zip@v1.2
with:
files: ./dist/
dest: MouseTrap-${{ steps.version.outputs.version }}.zip
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: mousetrap
path: ${{ github.workspace }}/MouseTrap-${{ steps.version.outputs.version }}.zip
- name: Add Version Tag
uses: actions/github-script@v8
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/${{ steps.version.outputs.version_tag }}`,
sha: context.sha
})
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2.4.2
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ steps.version.outputs.version_tag }}
draft: false
prerelease: true
body: |
MouseTrap is a portable application.
Download the *.zip archive and extract it to some safe place (where you don't delete it by mistake)
and double click mousetrap.exe to run it.
Please download and install [**.NET 10 Runtime**](https://dotnet.microsoft.com/en-us/download/dotnet/10.0) if you have trouble running mousetrap
_in most cases it will notify you with a simple message dialog if the runtime is missing_
[Documentation + Help](https://github.com/r-Larch/MouseTrap/blob/master/README.md)
> [!TIP]
> The **MouseTrap.exe is not signed!** Because Code signing certificates cost a lot of money.
> _So in case you get some "Windows protected your PC" warning, just hit "more infos" and then "Run anyway"._
> _Or download the Source Code and Build it on your own._
files: ./MouseTrap-${{ steps.version.outputs.version }}.zip