-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (34 loc) · 975 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy Web Demo
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
cd web/
make deps
make build
- run: |
cd web/packages/app/dist && zip -r ../../../../web-demo-latest.zip ./*
- uses: softprops/action-gh-release@v1
with:
tag_name: latest
draft: false
prerelease: false
files: web-demo-latest.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WEB_TRIGGER_DEPLOY_TOKEN }}" \
https://api.github.com/repos/polarity-lang/polarity-lang.github.io/dispatches \
-d '{"event_type":"trigger-deploy"}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}