-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (40 loc) · 1.08 KB
/
site-generate.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
42
name: Generate Static Website
on:
workflow_dispatch:
workflow_run:
workflows: ["Publish Docker Image"]
types: [completed]
jobs:
publish-github-pages:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 22
- name: Build package
run: |
npm ci
npm run build
- name: Generate website
env:
NUXT_PUBLIC_SITE_URL: ${{vars.NUXT_PUBLIC_SITE_URL}}
NUXT_PUBLIC_SITE_EMAIL: ${{vars.NUXT_PUBLIC_SITE_EMAIL}}
run: |
cd ./site
npm ci
npm run generate
- name: Generate docs
run: |
npm run docs
- name: Check in the changes
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
git add .
git commit -m "chore(site): publish website"
git push origin