-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (40 loc) · 1.07 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
push:
branches: [main, staging, trying]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: 'main'
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Setup Aya
uses: aya-prover/setup-aya@latest
- name: Setup pnpm for sane package management
uses: pnpm/[email protected]
- name: Build
run: |
pnpm i
pnpm build
- name: Deploy to GitHub Pages
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
cp CNAME src/.vitepress/dist/
cd src/.vitepress/dist
git init
git config user.email "[email protected]"
git config user.name "owo-bot"
git add *
git commit -m "GitHub Actions Automated Deploy"
git remote add origin "https://owo-bot:[email protected]/aya-prover/aya-prover.github.io.git"
git branch -M main
git push -f -u origin main