-
-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (40 loc) · 1.08 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
44
45
name: docs
on:
workflow_dispatch:
push:
branches:
- docs
jobs:
docs:
runs-on: windows-latest
steps:
- name: 🤖 defaults
uses: devlooped/actions-bot@v1
with:
name: ${{ secrets.BOT_NAME }}
email: ${{ secrets.BOT_EMAIL }}
gh_token: ${{ secrets.GH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
token: ${{ env.GH_TOKEN }}
- name: 🙏 build
run: |
choco install docfx --force -y --version 2.59.4
docfx build
- name: ✓ commit
shell: bash
run: |
cd _site
git init
git add -A
git commit -m "Publish pages from ${GITHUB_REPOSITORY}@${GITHUB_SHA:0:9}"
- name: 🚀 push clarius
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.CLARIUS_ACCESS_TOKEN }}
repository: clarius/nugetizer
branch: gh-pages
force: true
directory: _site