-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.08 KB
/
release.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
name: Publish Release
permissions:
contents: write
on:
push:
paths:
- 'src/plugin.json'
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'src/plugin.json'
prop_path: 'Version'
- run: echo ${{steps.version.outputs.prop}}
- name: Restore dependencies
run: |
cd src
dotnet restore
- name: Build
run: |
cd src
dotnet publish -c Release -r win-x64 --no-self-contained Flow.Launcher.Plugin.TogglTrack.csproj
7z a -tzip "Flow.Launcher.Plugin.TogglTrack.zip" "./bin/Release/win-x64/publish/*"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "src/Flow.Launcher.Plugin.TogglTrack.zip"
tag_name: "v${{steps.version.outputs.prop}}"