Skip to content

feat: update projects.json #489

feat: update projects.json

feat: update projects.json #489

Workflow file for this run

name: github pages
on:
push:
branches:
- deploy
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: '18.x'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install --frozen-lockfile
- run: yarn run format
- run: yarn run clean
- run: yarn run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
cname: dfirebird.dev
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: master