-
-
Notifications
You must be signed in to change notification settings - Fork 29
59 lines (50 loc) · 1.34 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: build
on:
push:
branches: [ dev, rel/* ]
tags: [ '*' ]
pull_request:
branches: [ dev, rel/* ]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: build-ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout submodule
uses: actions/checkout@v4
with:
repository: openiddict/openiddict-core
path: submodules/openiddict-core
- name: Build documentation
uses: nikeee/[email protected]
with:
args: docfx.json
- name: Publish website artifacts
uses: actions/upload-artifact@v4
with:
name: website
path: ./_site
deploy-github-pages:
needs: build
runs-on: ubuntu-latest
if: github.event.repository.fork == false && github.ref == 'refs/heads/dev'
steps:
- name: Download website
uses: actions/download-artifact@v4
with:
name: website
path: ./_site
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _site
GIT_CONFIG_NAME: OpenIddict Bot
GIT_CONFIG_EMAIL: [email protected]
COMMIT_MESSAGE: Update the documentation pages