fix docker deploy #242
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: Beta Deploy | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
beta-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node v18 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: v18.19.0 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
.next | |
.yarn/cache | |
./node_modules | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build | |
run: yarn export | |
- name: Deploy Gh-Pages 🚀 | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./out | |
cname: beta.crustcloud.io |