This repository was archived by the owner on Jul 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +68
-0
lines changed Expand file tree Collapse file tree 3 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Check website"
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+ paths :
8+ - " website/**"
9+ - " .github/workflows/website_check.yaml"
10+
11+ jobs :
12+ checks :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+ - uses : actions/setup-node@v2
18+ with :
19+ node-version : " 16"
20+ - name : Test Build
21+ working-directory : " website"
22+ run : |
23+ if [ -e package-lock.json ]; then
24+ npm ci
25+ else
26+ npm i
27+ fi
28+ npm run build
Original file line number Diff line number Diff line change 1+ name : " Deploy website"
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ paths :
8+ - " website/**"
9+ - " .github/workflows/website_deploy.yaml"
10+
11+ jobs :
12+ deploy :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+ - uses : actions/setup-node@v2
18+ with :
19+ node-version : " 16"
20+ - name : Deploy to GitHub Pages
21+ working-directory : " website"
22+ run : |
23+ if [ -e package-lock.json ]; then
24+ npm ci
25+ else
26+ npm i
27+ fi
28+ # Extract GitHub org/user
29+ REPO="${{ github.repository }}"
30+ GIT_USERNAME=${REPO%/*}
31+ # Configure git client
32+ echo "Git repo - $REPO"
33+ echo "Git user - $GIT_USERNAME"
34+ echo "Event name - ${{ github.event_name }}"
35+ git config --global user.email "$GIT_USERNAME@users.noreply.github.com"
36+ git config --global user.name "$GIT_USERNAME"
37+ echo "machine github.com login $GIT_USERNAME password ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc
38+ # Run docusaurus-deploy
39+ GIT_USER=$GIT_USERNAME npm run deploy
Original file line number Diff line number Diff line change 44/doc/*
55/metrics/*
66/tool/*
7+ /website/*
78/dart_dependency_validator.yaml
You can’t perform that action at this time.
0 commit comments