vite-vue3-lowcode/.github/workflows/deploy.yml

36 lines
833 B
YAML
Raw Normal View History

2021-05-04 21:54:05 +08:00
name: deploy
2021-06-24 01:38:30 +08:00
env:
# 7 GiB by default on GitHub, setting to 6 GiB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
NODE_OPTIONS: --max-old-space-size=6144
2021-05-04 21:54:05 +08:00
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js v14.x
uses: actions/setup-node@v1
with:
2021-06-15 09:59:21 +08:00
node-version: '14.x'
2021-05-04 21:54:05 +08:00
- name: Install
2021-06-24 01:38:30 +08:00
run: yarn install --frozen-lockfile
2021-05-04 21:54:05 +08:00
- name: Build
2021-06-24 01:38:30 +08:00
run: yarn build
2021-05-04 21:54:05 +08:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./dist
personal_token: ${{ secrets.PERSONAL_TOKEN }}
commit_message: Update ghPages
2021-06-15 09:59:21 +08:00
force_orphan: true