Skip to content

Commit

Permalink
Merge pull request #3830 from github/koesie10/azure-mi-publishing
Browse files Browse the repository at this point in the history
Publish extension using Azure credentials
  • Loading branch information
koesie10 authored Nov 19, 2024
2 parents ea45e38 + d5f3c77 commit 9a0bff6
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ jobs:
needs: build
environment: publish-vscode-marketplace
runs-on: ubuntu-latest
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -139,9 +140,19 @@ jobs:
with:
name: vscode-codeql-extension

- name: Azure User-assigned managed identity login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
allow-no-subscriptions: true

- name: Publish to Registry
run: |
npx @vscode/vsce publish -p $VSCE_TOKEN --packagePath *.vsix
uses: azure/cli@v2
with:
azcliversion: latest
inlineScript: |
npx @vscode/vsce publish --azure-credential --packagePath *.vsix
open-vsx-publish:
name: Publish to Open VSX Registry
Expand Down

0 comments on commit 9a0bff6

Please sign in to comment.