-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (33 loc) · 966 Bytes
/
docs.yaml
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
name: Build DocC Documentation
on:
push:
branches:
- main
jobs:
build-docc:
runs-on: macos-12
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- uses: fwcd/swift-docc-action@v1.0.2
with:
target: EmacsSwiftModule
output: ./docs
hosting-base-path: emacs-swift-module
disable-indexing: "true"
transform-for-static-hosting: "true"
- name: Init new repo in dist folder and commit generated files
run: |
cd docs
git init
git add -A
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: Force push to destination branch
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: docs
force: true
directory: ./docs