-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 993 Bytes
/
deploy_website.yaml
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
---
# See: https://docusaurus.io/docs/deployment#deploying-to-github-pages
name: Deploy Website
on:
push:
branches: [main]
paths:
- '.github/workflows/deploy_website.yaml'
- 'website/**'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: website
steps:
- uses: actions/checkout@v4
# https://github.com/actions/setup-node/issues/206#issuecomment-774538395
- uses: nodenv/actions/node-version@main
id: nodenv
- uses: actions/setup-node@v3
with:
node-version: '${{ steps.nodenv.outputs.node-version }}'
- run: |-
# See: https://github.com/actions-user
git config --global user.email "actions@github.com"
git config --global user.name "gh-actions"
- run: yarn install --frozen-lockfile
- run: yarn deploy
env:
GIT_USER: ${{ github.actor }}:${{ github.token }}