Skip to content

Commit 8dc1bfc

Browse files
Deploy on push to main (#132)
1 parent 7f803b2 commit 8dc1bfc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/deploy.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
name: Deploy
22

33
on:
4-
workflow_dispatch:
4+
workflow_run:
5+
workflows: [Test]
6+
types: [completed]
7+
branches: [main]
58

69
jobs:
710
publish-extension:
811
name: Publish to marketplace
912
runs-on: ubuntu-latest
1013
environment: production
14+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
15+
1116
steps:
1217
- name: Checkout repository
1318
uses: actions/checkout@v6
19+
with:
20+
ref: ${{ github.event.workflow_run.head_sha }}
1421

1522
- name: Set up Node.js
1623
uses: actions/setup-node@v6

0 commit comments

Comments
 (0)