Skip to content

fix: correct branch in workflow #1

fix: correct branch in workflow

fix: correct branch in workflow #1

Workflow file for this run

name: build
permissions:
contents: write
on:
push:
branches: ["master"]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: "plugin.json"
prop_path: "Version"
- run: echo ${{steps.version.outputs.prop}}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: |
dotnet publish -c Release -r win-x64 --no-self-contained Flow.Launcher.Plugin.PowerToys.csproj
7z a -tzip "Flow.Launcher.Plugin.PowerToys.zip" "./bin/Release/win-x64/publish/*"
- name: Publish
uses: softprops/action-gh-release@v2
with:
files: "Flow.Launcher.Plugin.PowerToys.zip"
tag_name: "v${{steps.version.outputs.prop}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}