-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.21 KB
/
docs.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
43
# Workflow for updating the documentation website
---
name: Update Documentation
# Documentation updates can happen in different ways; allow only one at a time
concurrency: release
on:
# Allow running this workflow manually from the Actions tab
workflow_dispatch:
push:
branches:
- main
jobs:
Update-Documentation:
name: Update the documentation
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
# Full history needed to show correct last update time/author
# Ref: https://github.com/facebook/docusaurus/issues/2798
fetch-depth: 0
- name: Install local website package
working-directory: ./site
run: npm ci
- name: Build documentation website
working-directory: ./site
run: npm run build
- name: Deploy documentation website
working-directory: ./site
env:
GIT_USER: 'phylum-bot'
GIT_PASS: ${{ secrets.GH_RELEASE_PAT }}
GIT_USER_NAME: 'phylum-bot'
GIT_USER_EMAIL: '[email protected]'
run: npm run deploy