-
-
Notifications
You must be signed in to change notification settings - Fork 35
50 lines (47 loc) · 1.47 KB
/
VergeStore-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
46
47
48
49
50
name: Docs
on:
push:
branches:
- main # Set a branch name to trigger deployment
workflow_dispatch:
env:
SCHEME: "VergeStore"
jobs:
deploy:
runs-on: macos-13
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: maxim-lobanov/setup-xcode@v1.1
with:
xcode-version: "15.0"
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Make dir
run: |
mkdir -p public/Verge
mkdir -p public/VergeORM
- name: Build Verge
run: swift package --allow-writing-to-directory public/Verge
generate-documentation
--target Verge
--disable-indexing
--transform-for-static-hosting
--hosting-base-path swift-Verge/Verge
--output-path public/Verge
- name: Build VergeORM
run: swift package --allow-writing-to-directory public/VergeORM
generate-documentation
--target VergeORM
--disable-indexing
--transform-for-static-hosting
--hosting-base-path swift-Verge/VergeORM
--output-path public/VergeORM
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public