-
Notifications
You must be signed in to change notification settings - Fork 6
63 lines (59 loc) · 1.91 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: GitHub Pages Deploy
# Controls when the workflow will run
on:
push:
branches: ["develop"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0
- run: zig version
- uses: actions/setup-node@v4
with:
node-version: "18"
- uses: pnpm/action-setup@v4
name: Install pnpm
- run: pnpm install
- run: pnpm run build
- name: Prepare static files
run: |
mkdir _site/
cp -r examples/ _site/
rm _site/examples/virtual-background
cp -r packages/virtual-background/dist/ _site/examples/virtual-background
rm _site/examples/light-adjustment
cp -r packages/light-adjustment/dist/ _site/examples/light-adjustment
rm _site/examples/light-adjustment-gpu
cp -r packages/light-adjustment-gpu/dist/ _site/examples/light-adjustment-gpu
rm _site/examples/noise-suppression
cp -r packages/noise-suppression/dist/ _site/examples/noise-suppression
- name: Upload files
uses: actions/upload-pages-artifact@v3
- name: Slack Notification
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: media-processors
SLACK_COLOR: danger
SLACK_TITLE: Failure test
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4