Skip to content

Merge pull request #31 from elonehoo/renovate/crazy-max-ghaction-gith… #26

Merge pull request #31 from elonehoo/renovate/crazy-max-ghaction-gith…

Merge pull request #31 from elonehoo/renovate/crazy-max-ghaction-gith… #26

Workflow file for this run

name: Build
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2.4.0
- name: Install node
uses: actions/setup-node@v3
with:
cache: pnpm
- name: Install
run: pnpm install
- name: Run Build
run: pnpm run build
- name: echo cname
run: echo 'tornado.elonehoo.xyz' > dist/CNAME
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}