Skip to content

Commit

Permalink
GHA for publishing vsix. [skip publish nuget] [force publish vsix]
Browse files Browse the repository at this point in the history
  • Loading branch information
fryderykhuang committed Jan 28, 2024
1 parent 7358348 commit 9e1cc0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
name: vsix
path: './artifacts/**/NullGC.Analyzer.Vsix.vsix'
- name: Publish NuGet packages
if: ${{ !contains(github.event.head_commit.body, '[skip publish nuget]') }}
if: ${{ !contains(github.event.head_commit.message, '[skip publish nuget]') }}
run: $Env:NUGET_API_KEY='${{ secrets.NUGET_API_KEY }}'; .\scripts\PublishNuget.ps1

publish-vsix:
Expand All @@ -90,14 +90,14 @@ jobs:
src:
- 'src/NullGC.Analyzer*/**'
- name: Download artifacts
if: ${{ contains(github.event.head_commit.body, '[force publish vsix]') || steps.changes.outputs.src == 'true' }}
if: ${{ contains(github.event.head_commit.message, '[force publish vsix]') || steps.changes.outputs.src == 'true' }}
uses: actions/download-artifact@v4
with:
name: vsix
- name: Dir
run: ls
- name: Publish vsix to marketplace
if: ${{ contains(github.event.head_commit.body, '[force publish vsix]') || steps.changes.outputs.src == 'true' }}
if: ${{ contains(github.event.head_commit.message, '[force publish vsix]') || steps.changes.outputs.src == 'true' }}
uses: cezarypiatek/[email protected]
with:
extension-file: ./NullGC.Analyzer.Vsix.vsix
Expand Down

0 comments on commit 9e1cc0f

Please sign in to comment.