Skip to content

refactor: external-link-resolver #25

refactor: external-link-resolver

refactor: external-link-resolver #25

Workflow file for this run

name: publish gh-pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: cache .pnpm-store
uses: actions/cache@v3
with:
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}
- name: install and build
run: |
npm install -g [email protected]
pnpm install
pnpm run build
- name: deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist