Skip to content

Commit

Permalink
1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed Sep 30, 2024
1 parent 06413ad commit 6128cc3
Show file tree
Hide file tree
Showing 3 changed files with 1,712 additions and 3,384 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
on:
push:
tags:
- "dryrun/[0-9]+.[0-9]+.[0-9]+"
- "release/[0-9]+.[0-9]+.[0-9]+"
- "prerelease/[0-9]+.[0-9]+.[0-9]+"

name: Deploy Extension
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check for DryRun and Prerelease
- name: Check for DryRun
id: releaseMode
# perform secret check & put boolean result as an output
shell: bash
run: |
if [[ "${{ github.ref }}" = "refs/tags/prerelease"* ]]; then
echo "preRelease=true" >> $GITHUB_OUTPUT;
if [[ "${{ github.ref }}" = "refs/tags/dryrun"* ]]; then
echo "dryRun=true" >> $GITHUB_OUTPUT;
else
echo "preRelease=false" >> $GITHUB_OUTPUT;
echo "dryRun=false" >> $GITHUB_OUTPUT;
fi
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -29,7 +29,7 @@ jobs:
with:
dryRun: ${{ steps.releaseMode.outputs.dryRun }}
pat: ${{ secrets.OPEN_VSX_TOKEN }}
preRelease: ${{ steps.releaseMode.outputs.preRelease }}
preRelease: false
skipDuplicate: true
- name: Publish to Visual Studio Marketplace
if: success() || failure()
Expand All @@ -38,12 +38,12 @@ jobs:
dryRun: ${{ steps.releaseMode.outputs.dryRun }}
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
preRelease: ${{ steps.releaseMode.outputs.preRelease }}
preRelease: false
registryUrl: https://marketplace.visualstudio.com
skipDuplicate: true
- name: Github Release
uses: softprops/action-gh-release@v1
# if: ${{ ! steps.releaseMode.outputs.dryRun }}
if: ${{ ! steps.releaseMode.outputs.dryRun }}
with:
body: |
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).
Expand Down
Loading

0 comments on commit 6128cc3

Please sign in to comment.