Skip to content

Commit

Permalink
yml fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adielBm committed Aug 28, 2024
1 parent 1c963b2 commit 366c0cf
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ permissions:

on:
push:
branches: [ "main" ]
branches: ["main"]
paths-ignore:
- '**/README.md'
- "**/README.md"

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
- name: Build
run: |
dotnet publish -c Release -r win-x64 --no-self-contained Flow.Launcher.Plugin.Weather.csproj
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}}"
- 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}}"

0 comments on commit 366c0cf

Please sign in to comment.