-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (40 loc) · 1.01 KB
/
publish.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
# Publish Documentation GitHub action
name: Publish Documentation
on:
workflow_dispatch:
push:
branches:
- main
- 2.x.x
env:
HUMMINGBIRD_VERSION: "2.0"
DEPLOY_ROOT_FOLDER: false
jobs:
build:
runs-on: ubuntu-latest
container:
image: swift:5.9
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install rsync 📚
run: |
apt-get update && apt-get install -y rsync bc
- name: Build
run: |
./scripts/build-docc.sh
./scripts/build-sitemap.sh
- name: Deploy Root Folder 🚀
if: ${{ env.DEPLOY_ROOT_FOLDER == 'true' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/hummingbird-docs/
clean-exclude: "*.0"
target-folder: docs/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/hummingbird-docs/${{ env.HUMMINGBIRD_VERSION }}
target-folder: docs/${{ env.HUMMINGBIRD_VERSION }}