Skip to content

Commit b2e2a4e

Browse files
committed
Move Test PAT after Upload Artifact
Ensures if the PAT test fails, the built .vsix files are still available for testing
1 parent ae52b69 commit b2e2a4e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ jobs:
4848
vsce package -o ovsx-raspberry-pi-pico-${version}.vsix
4949
env:
5050
BUILD_ENV: production
51-
- name: Test PAT
52-
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
53-
env:
54-
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_PAT }}
55-
run: |
56-
vsce verify-pat raspberry-pi
57-
- name: Test OVSX PAT
58-
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
59-
run: |
60-
npx ovsx verify-pat -p ${{ secrets.OPEN_VSX_PAT }}
6151
- name: Get Short Commit SHA
6252
run: |
6353
short_sha=$(git rev-parse --short "$GITHUB_SHA")
@@ -70,6 +60,16 @@ jobs:
7060
debug-raspberry-pi-pico-*.vsix
7161
raspberry-pi-pico-*.vsix
7262
ovsx-raspberry-pi-pico-*.vsix
63+
- name: Test PAT
64+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
65+
env:
66+
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_PAT }}
67+
run: |
68+
vsce verify-pat raspberry-pi
69+
- name: Test OVSX PAT
70+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
71+
run: |
72+
npx ovsx verify-pat -p ${{ secrets.OPEN_VSX_PAT }}
7373
- name: Add Release Asset
7474
uses: softprops/action-gh-release@v2
7575
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)