Skip to content

Commit

Permalink
Add Github Release
Browse files Browse the repository at this point in the history
  • Loading branch information
js0ny committed Dec 25, 2024
1 parent bd3d6f4 commit a06eec4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Release
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- .github/workflows/*

jobs:
publish:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Get Version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: "plugin.json"
prop_path: "Version"
- name: Build
run: |
dotnet publish -c Release -r win-x64 -o "Flow.Launcher.Plugin.Cider2"
7z a -tzip "Flow.Launcher.Plugin.Cider2-${{ steps.version.outputs.prop }}.zip" "./Flow.Launcher.Plugin.Cider2/*"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: Flow.Launcher.Plugin.Cider2-${{ steps.version.outputs.prop }}.zip
tag_name: ${{ steps.version.outputs.prop }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a06eec4

Please sign in to comment.