Skip to content

Commit

Permalink
Improve workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sboulema committed Nov 25, 2024
1 parent a314088 commit dcc0d03
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ env:

jobs:
build:
name: Build
name: 🛠️ Build
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
Expand All @@ -29,7 +29,7 @@ jobs:

- name: Build VSIX
run: msbuild NuGetMonitor.sln /t:Rebuild /p:Configuration=Release
env:
env:
DeployExtension: False
Version: ${{ env.version }}

Expand All @@ -44,7 +44,7 @@ jobs:
release:
if: github.ref_name == 'main'
name: Release
name: 🔖 Tag & Release
needs: build
runs-on: windows-latest
environment: Release
Expand All @@ -67,14 +67,34 @@ jobs:
body: ${{ steps.tag_release.outputs.changelog }}
artifacts: "**/*.vsix"
skipIfReleaseExists: true


publishMarketplace:
if: github.ref_name == 'main'
name: 🚀 Publish to Marketplace
needs: build
runs-on: windows-latest
environment: Release
steps:
- name: Download artifact
uses: actions/download-artifact@v4

- name: Publish to Marketplace
uses: cezarypiatek/[email protected]
with:
extension-file: ${{ env.vsixPath }}
publish-manifest-file: ${{ env.publishManifestPath }}
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}

publishOpenVSIXGallery:
if: github.ref_name == 'main'
name: 🚀 Publish to Open VSIX Gallery
needs: build
runs-on: windows-latest
environment: Release
steps:
- name: Download artifact
uses: actions/download-artifact@v4

- name: Publish to Open VSIX Gallery
run: |
curl -L 'https://www.vsixgallery.com/api/upload?repo=${{ env.repoUrl }}&issuetracker=${{ env.repoUrl }}/issues' -F 'file=@"${{ env.vsixPath }}"'
curl -L 'https://www.vsixgallery.com/api/upload?repo=${{ env.repoUrl }}&issuetracker=${{ env.repoUrl }}/issues' -F 'file=@"${{ env.vsixPath }}"'

0 comments on commit dcc0d03

Please sign in to comment.