Skip to content

Merge pull request #56 from taooceros/disable_virtualmanagerinternal #17

Merge pull request #56 from taooceros/disable_virtualmanagerinternal

Merge pull request #56 from taooceros/disable_virtualmanagerinternal #17

name: Publish Release
on:
push:
branches: [ master ]
paths-ignore:
- .github/workflows/*
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
cache: true
- 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: Build
run: |
dotnet publish 'Flow.Plugin.WindowWalker.csproj' -r win-x64 -c Release -o "WindowWalker-${{steps.version.outputs.prop}}"
7z a -tzip "WindowWalker-${{steps.version.outputs.prop}}.zip" "./WindowWalker-${{steps.version.outputs.prop}}/*"
rm -r "WindowWalker-${{steps.version.outputs.prop}}"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "WindowWalker*"
tag_name: "v${{steps.version.outputs.prop}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}