From 65569150e4afc2f618347b2db8b65ec1b2e9b61e Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Wed, 5 Jan 2022 12:55:27 -0600 Subject: [PATCH] update workflow --- .github/workflows/{build.yml => build dotnet.yml} | 0 .github/workflows/publish.yml | 13 ++++++------- 2 files changed, 6 insertions(+), 7 deletions(-) rename .github/workflows/{build.yml => build dotnet.yml} (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build dotnet.yml similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/build dotnet.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c06be8e..688e6a8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,8 +2,8 @@ name: Publish Release on: push: - branches: [ master ] - paths-ignore: + branches: ["main"] + paths-ignore: - .github/workflows/* workflow_dispatch: @@ -19,10 +19,10 @@ jobs: - 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}} + with: + path: "plugin.json" + prop_path: "Version" + - run: echo ${{steps.version.outputs.prop}} - name: Publish run: | dotnet publish 'Flow.Plugin.VSCodeWorkspaces.csproj' -r win-x64 -c Release -o "Flow.Plugin.VSCodeWorkspaces-${{steps.version.outputs.prop}}" @@ -35,4 +35,3 @@ jobs: tag_name: "v${{steps.version.outputs.prop}}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -