feat: export way #61
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: etc-hooks | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Lock npm version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.18.0 | |
- name: Install and Build | |
run: | | |
npm i -g pnpm | |
pnpm run init | |
pnpm run build:doc | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
BRANCH: etc-pages | |
FOLDER: dist | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} |