Skip to content

Commit 389206c

Browse files
committed
update workflows
1 parent dab094e commit 389206c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/preview.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy Preview site
2+
3+
on:
4+
push:
5+
branches: ["preview"]
6+
7+
# Allows you to run this workflow manually from the Actions tab ?
8+
workflow_dispatch:
9+
10+
repository_dispatch:
11+
types: [trigger-workflow]
12+
13+
jobs:
14+
trigger:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Trigger preview deployment
18+
run: |
19+
curl -X POST \
20+
-H "Accept: application/vnd.github.v3+json" \
21+
-H "Authorization: token ${{ secrets.PAT }}" \
22+
https://api.github.com/repos/Language-Technology-Assessment/preview/actions/workflows/preview.yml/dispatches \
23+
-d '{"ref":"main"}'

0 commit comments

Comments
 (0)