Skip to content

Merge pull request #3 from adielBm/hotfix-double-parsing #5

Merge pull request #3 from adielBm/hotfix-double-parsing

Merge pull request #3 from adielBm/hotfix-double-parsing #5

Workflow file for this run

name: build
permissions:
contents: write
on:
push:
branches: ["main"]
paths-ignore:
- "**/README.md"
- "**/screenshot.png"
jobs:
build:
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: "plugin.json"
prop_path: "Version"
- run: echo ${{steps.version.outputs.prop}}
- name: Restore
run: |
dotnet restore Flow.Launcher.Plugin.Weather.csproj
- name: Build
run: |
dotnet publish Flow.Launcher.Plugin.Weather.csproj -c Release -r win-x64 --no-self-contained
7z a -tzip "Flow.Launcher.Plugin.Weather.zip" "./bin/Release/win-x64/publish/*"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "Flow.Launcher.Plugin.Weather.zip"
tag_name: "v${{steps.version.outputs.prop}}"