forked from Websoft9/doc.websoft9.com
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 860 Bytes
/
build_doc.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: Docs Build and Upload to Azure
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'docs/**'
- 'versioned_docs/**'
- 'i18n/**'
- 'src/**'
- 'static/**'
- '**.js'
- '!docs/_list'
jobs:
build:
runs-on: ubuntu-latest
#if: false # stop steps
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Docusaurus build
run: |
yarn install
yarn run build
env:
CI: true
# to azure blob
- name: debug
run: ls
- uses: bacongobbler/azure-blob-storage-upload@main
with:
source_dir: build
container_name: $web
connection_string: ${{ secrets.Azure_blob }}
extra_args: '--destination-path ./'
overwrite: true