-
Notifications
You must be signed in to change notification settings - Fork 25
56 lines (48 loc) · 1.29 KB
/
Copy pathdeploy-docs.yml
File metadata and controls
56 lines (48 loc) · 1.29 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Deploy docs
on:
push:
branches:
- master
paths:
- "docs/**"
- "bleep-site/**"
- "docs-snippets-from-tests/**"
- ".github/workflows/deploy-docs.yml"
pull_request:
paths:
- "docs/**"
- "bleep-site/**"
- "docs-snippets-from-tests/**"
- ".github/workflows/deploy-docs.yml"
workflow_dispatch: {}
permissions:
contents: write
concurrency:
group: deploy-docs
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
- uses: actions/setup-node@v7
with:
node-version: "20"
cache: npm
cache-dependency-path: bleep-site/package-lock.json
- name: Install dependencies
working-directory: bleep-site
run: npm ci
- name: Build site
working-directory: bleep-site
run: npm run build
- name: Deploy to gh-pages
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./bleep-site/build
cname: bleep.build
commit_message: "Deploy website - based on ${{ github.sha }}"