Skip to content

Commit 7d076c3

Browse files
committed
Update GitHub Actions workflow to specify environment for secrets and streamline publish command
1 parent 1a5d140 commit 7d076c3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
publish:
1111
runs-on: ubuntu-latest
12+
environment: VSC EXT # Specify the environment where the secret is stored
1213

1314
steps:
1415
- name: Checkout code
@@ -32,6 +33,4 @@ jobs:
3233
run: vsce package
3334

3435
- name: Publish to Visual Studio Marketplace
35-
run: vsce publish -p ${{ secrets.VSC_PAT }}
36-
env:
37-
VSCE_PAT: ${{ secrets.VSC_PAT }}
36+
run: vsce publish -p "${{ secrets.VSC_PAT }}"

0 commit comments

Comments
 (0)