Skip to content

Commit

Permalink
Update workflows, change out file name for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
nisargjhaveri committed Jun 23, 2023
1 parent 00b3581 commit fca2301
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/vsce-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Node.js CI
on:
push:
branches: [ main ]
tags:
- v*
pull_request:
branches: [ main ]

Expand All @@ -15,12 +17,21 @@ jobs:
with:
node-version: 18
cache: 'npm'
- name: Setup Environment
run: |
if [ "$GITHUB_REF_TYPE" = "tag" -a "${GITHUB_REF_NAME::0}" = "v" ]; then
VSIX_OUT_NAME="ios-deploy-${GITHUB_REF_NAME:1}.vsix"
else
VSIX_OUT_NAME="ios-deploy.vsix"
fi
echo "VSIX_OUT_NAME=$VSIX_OUT_NAME" >> $GITHUB_ENV
- run: npm install
- run: npm install -g @vscode/vsce
- run: vsce package --out ios-debug.vsix
- run: vsce package --out "$VSIX_OUT_NAME"
- uses: actions/upload-artifact@v3
with:
path: ios-debug.vsix
path: ${{ env.VSIX_OUT_NAME }}

test:
runs-on: macos-12
Expand Down

0 comments on commit fca2301

Please sign in to comment.