Skip to content

Commit 5cc142e

Browse files
committed
Update Workflows
Change regex for tag matching
1 parent 1c6d6d4 commit 5cc142e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ on:
44
workflow_dispatch:
55
push:
66
tags:
7-
- "release/**"
7+
- 'v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
88

99
jobs:
1010
publish:
1111
runs-on: windows-latest
1212
steps:
13-
- name: 1. Checkout
13+
- name: Checkout
1414
uses: actions/checkout@v3
1515

16-
- name: 2. Download artifact
16+
- name: 1. Download artifact
1717
id: download-artifact
1818
uses: dawidd6/action-download-artifact@v2
1919
with:
2020
github_token: ${{secrets.GH_SECRET}}
2121
workflow: release_build_and_deploy.yml
2222
workflow_conclusion: success
2323

24-
- name: 3. Publish Release to Marketplace
24+
- name: 2. Publish Release to Marketplace
2525
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
2626
with:
2727
marketplace-pat: ${{ secrets.VS_PAT }}
2828
publish-manifest-path: ./src/extension.manifest.json
2929
vsix-path: ./artifact/CodingWithCalvin.SuperClean.Vsix.vsix
3030

31-
- name: 4. Create Release
31+
- name: 3. Create Release
3232
uses: ncipollo/[email protected]
3333
with:
3434
artifacts: ./artifact/CodingWithCalvin.SuperClean.Vsix.vsix

.github/workflows/release_build_and_deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: 'Build and Deploy'
22

33
on:
44
workflow_dispatch:
5+
pull_request:
6+
types: [opened, reopened]
57
push:
68
branches:
79
- main
810
tags-ignore:
9-
- "release/**"
11+
- 'v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
1012

1113
jobs:
1214
Release-Build-and-Deploy:

0 commit comments

Comments
 (0)