-
Notifications
You must be signed in to change notification settings - Fork 12
54 lines (52 loc) · 1.72 KB
/
build-documentation.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
name: build-documentation
on:
workflow_dispatch:
workflow_call:
jobs:
build-docc:
runs-on: [self-hosted, macOS]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Documentation
run: exec ./.github/scripts/build-docc.sh
- name: Init new repo in dist folder and commit generated files
run: |
cd docs
git init
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: Force push to destination branch
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: docs
force: true
directory: ./docs
############################
##### IMPORTANT NOTICE #####
############################
# This was used to build the documentation catalog until
# it didn't produce the 'documentation' directory anymore.
#
# - uses: fwcd/[email protected]
# with:
# target: CodeEditTextView
# output: ./docs
# hosting-base-path: CodeEditTextView
# disable-indexing: 'true'
# transform-for-static-hosting: 'true'
#
# The command that this plugin uses is:
#
# swift package --allow-writing-to-directory ./docs generate-documentation \
# --target CodeEditTextView
# --output-path ./docs
# --hosting-base-path CodeEditTextView
# --disable-indexing
# --transform-for-static-hosting
#
# We now use xcodebuild to build the documentation catalog instead.
#