-
Notifications
You must be signed in to change notification settings - Fork 207
42 lines (36 loc) · 1.11 KB
/
docusaurus.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: Docusaurus site CI
on:
push:
branches: [ master, upgrade ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '21'
cache: 'npm'
- run: npm install
- run: npm run build
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
version: '1.50.1'
tags: tag:static-sites
- name: Deploy to Static Sites Host
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: build/
remote_path: /var/www/docs/
remote_host: ${{ secrets.DEPLOY_STATIC_SITE_HOST }}
remote_user: ${{ secrets.DEPLOY_STATIC_SITE_USER }}
remote_key: ${{ secrets.DEPLOY_STATIC_SITE_KEY }}
- name: Purge BunnyCDN cache
uses: eayllon/bunnycdn-purge-cache@253ab627f8e743b4d7f96e7020e8bc04377ac49d
with:
accessKey: ${{ secrets.BUNNY_API_KEY }}
zoneID: ${{ secrets.BUNNY_ZONE_ID }}