Skip to content

Commit bacd80f

Browse files
committed
ci(ci): 💚 fix actions workflow
1 parent 5c387ab commit bacd80f

File tree

2 files changed

+49
-49
lines changed

2 files changed

+49
-49
lines changed

.github/release.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Publish Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
paths-ignore:
10+
- '**/README.md'
11+
12+
jobs:
13+
publish:
14+
15+
runs-on: windows-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Setup .NET
21+
uses: actions/setup-dotnet@v3
22+
with:
23+
dotnet-version: 7.0.x
24+
25+
- name: get version
26+
id: version
27+
uses: notiz-dev/github-action-json-property@release
28+
with:
29+
path: 'src/plugin.json'
30+
prop_path: 'Version'
31+
32+
- run: echo ${{steps.version.outputs.prop}}
33+
34+
- name: Restore dependencies
35+
run: |
36+
cd src
37+
dotnet restore
38+
39+
- name: Build
40+
run: |
41+
cd src
42+
dotnet publish -c Release -r win-x64 --no-self-contained Flow.Launcher.Plugin.TogglTrack.csproj
43+
7z a -tzip "Flow.Launcher.Plugin.TogglTrack.zip" "./bin/Release/win-x64/publish/*"
44+
45+
- name: Publish
46+
uses: softprops/action-gh-release@v1
47+
with:
48+
files: "src/Flow.Launcher.Plugin.TogglTrack.zip"
49+
tag_name: "v${{steps.version.outputs.prop}}"

0 commit comments

Comments
 (0)