Skip to content

Commit

Permalink
Tag based triggers on current branch
Browse files Browse the repository at this point in the history
  • Loading branch information
samyakkkk committed Mar 26, 2024
1 parent e0b5175 commit 362e345
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@
name: VSCode Publish

on:
release:
types:
- created
push:
tags:
- '**' # Trigger the workflow for any tag push

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
- name: Checkout repo at the pushed tag
uses: actions/checkout@v4
with:
# This configures the action to checkout the commit that was tagged,
# which is effectively the code state you want to work with.
ref: ${{ github.ref }}

- name: Use Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
Expand Down

0 comments on commit 362e345

Please sign in to comment.