-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (39 loc) · 966 Bytes
/
deploy.yml
File metadata and controls
42 lines (39 loc) · 966 Bytes
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
name: deploy
on:
push:
paths-ignore:
- 'old/**'
- '**.md'
pull_request:
paths-ignore:
- 'old/**'
- '**.md'
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
deploy-fluid-org:
runs-on: ubuntu-22.04
needs: build
if: github.ref == 'refs/heads/staging'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: build
run: |
yarn install
yarn workspace @explorable-viz/fluid build
yarn workspace fluid-org build
- name: gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/fluid-org/build
keep_files: false
- name: test deployed website
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./fluid/script/util/test-deployed-website.sh https://f.luid.org website/fluid-org