File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # on:
2+ # release:
3+ # types: [created]
4+ on : [pull_request]
5+ name : Update playground on website
6+
7+ permissions :
8+ contents : write
9+
10+ jobs :
11+ deploy :
12+ name : Deploy to GitHub Pages
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 20.x
21+ cache : yarn
22+
23+ - name : Install dependencies
24+ run : yarn install --frozen-lockfile
25+ - name : Build website
26+ run : yarn build
27+
28+ # Popular action to deploy to GitHub Pages:
29+ # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
30+ - name : Deploy to GitHub Pages
31+ uses : peaceiris/actions-gh-pages@v3
32+ with :
33+ github_token : ${{ secrets.GITHUB_TOKEN }}
34+ # Build output to publish to the `gh-pages` branch:
35+ publish_dir : ./build
36+ # The following lines assign commit authorship to the official
37+ # GH-Actions bot for deploys to `gh-pages` branch:
38+ # https://github.com/actions/checkout/issues/13#issuecomment-724415212
39+ # The GH actions bot is used by default if you didn't specify the two fields.
40+ # You can swap them out with your own user credentials.
41+ user_name : github-actions[bot]
42+ user_email : 41898282+github-actions[bot]@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments