Skip to content

Commit a06eec4

Browse files
committed
Add Github Release
1 parent bd3d6f4 commit a06eec4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish Release
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- .github/workflows/*
9+
10+
jobs:
11+
publish:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: 7.0.x
20+
- name: Get Version
21+
id: version
22+
uses: notiz-dev/github-action-json-property@release
23+
with:
24+
path: "plugin.json"
25+
prop_path: "Version"
26+
- name: Build
27+
run: |
28+
dotnet publish -c Release -r win-x64 -o "Flow.Launcher.Plugin.Cider2"
29+
7z a -tzip "Flow.Launcher.Plugin.Cider2-${{ steps.version.outputs.prop }}.zip" "./Flow.Launcher.Plugin.Cider2/*"
30+
- name: Publish
31+
uses: softprops/action-gh-release@v1
32+
with:
33+
files: Flow.Launcher.Plugin.Cider2-${{ steps.version.outputs.prop }}.zip
34+
tag_name: ${{ steps.version.outputs.prop }}
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)