wireguard-dashboard-admin/.github/workflows/deploy.yml
2022-04-09 23:29:54 +08:00

36 lines
699 B
YAML

name: deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: use Node.js 16
uses: actions/setup-node@v2.1.2
with:
node-version: '16.x'
- name: use pnpm 6.32.2
uses: pnpm/action-setup@v2.2.1
with:
version: 6.32.2
- name: Build
run: |
pnpm install
pnpm run build:github
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
env:
github_token: ${{ secrets.ACTIONS_DEPLOY_KEY }}
user_name: zclzone
user_email: zclzone@outlook.com