Skip to content

Commit 6128cc3

Browse files
committed
1.1.3
1 parent 06413ad commit 6128cc3

File tree

3 files changed

+1712
-3384
lines changed

3 files changed

+1712
-3384
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
on:
22
push:
33
tags:
4+
- "dryrun/[0-9]+.[0-9]+.[0-9]+"
45
- "release/[0-9]+.[0-9]+.[0-9]+"
5-
- "prerelease/[0-9]+.[0-9]+.[0-9]+"
66

77
name: Deploy Extension
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Check for DryRun and Prerelease
12+
- name: Check for DryRun
1313
id: releaseMode
1414
# perform secret check & put boolean result as an output
1515
shell: bash
1616
run: |
17-
if [[ "${{ github.ref }}" = "refs/tags/prerelease"* ]]; then
18-
echo "preRelease=true" >> $GITHUB_OUTPUT;
17+
if [[ "${{ github.ref }}" = "refs/tags/dryrun"* ]]; then
18+
echo "dryRun=true" >> $GITHUB_OUTPUT;
1919
else
20-
echo "preRelease=false" >> $GITHUB_OUTPUT;
20+
echo "dryRun=false" >> $GITHUB_OUTPUT;
2121
fi
2222
- uses: actions/checkout@v3
2323
- uses: actions/setup-node@v3
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
dryRun: ${{ steps.releaseMode.outputs.dryRun }}
3131
pat: ${{ secrets.OPEN_VSX_TOKEN }}
32-
preRelease: ${{ steps.releaseMode.outputs.preRelease }}
32+
preRelease: false
3333
skipDuplicate: true
3434
- name: Publish to Visual Studio Marketplace
3535
if: success() || failure()
@@ -38,12 +38,12 @@ jobs:
3838
dryRun: ${{ steps.releaseMode.outputs.dryRun }}
3939
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
4040
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
41-
preRelease: ${{ steps.releaseMode.outputs.preRelease }}
41+
preRelease: false
4242
registryUrl: https://marketplace.visualstudio.com
4343
skipDuplicate: true
4444
- name: Github Release
4545
uses: softprops/action-gh-release@v1
46-
# if: ${{ ! steps.releaseMode.outputs.dryRun }}
46+
if: ${{ ! steps.releaseMode.outputs.dryRun }}
4747
with:
4848
body: |
4949
This release is also available on the [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=SocketSecurity.vscode-socket-security) and [OpenVSX Registry](https://open-vsx.org/extension/SocketSecurity/vscode-socket-security).

0 commit comments

Comments
 (0)