Deploy Website Nightly [auto] #205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Website Nightly [auto] | |
on: | |
schedule: | |
- cron: "00 00 * * *" | |
workflow_run: | |
workflows: ["Release RC version [auto]"] | |
types: | |
- completed | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4.1.0 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
- name: Install and Build | |
run: | | |
export NODE_OPTIONS="--max_old_space_size=4096" | |
yarn install | |
- name: Update version.md | |
run: | | |
touch packages/website/static/version.md | |
git log -1 &>> packages/website/static/version.md | |
- name: Build | |
run: | | |
yarn ci:deploy:nightly | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4.3.3 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: packages/website/build # The folder the action should deploy. | |
target-folder: nightly | |
clean: true |