-
Notifications
You must be signed in to change notification settings - Fork 93
43 lines (39 loc) · 1.02 KB
/
upload-docs-ios.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
name: Upload Docs iOS
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- 'test-doc-*'
jobs:
upload-docs:
runs-on: macos-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4
- name: Install Jazzy
run: |
gem install jazzy
- name: Generate docs
run: |
jazzy
- name: Checkout docs branch
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: docs
clean: false
- name: Commit documentation changes
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git status
TAG_NAME=${{ github.ref }}
TAG_NAME=${TAG_NAME#refs/tags/}
echo "Current tag: $TAG_NAME"
git add docs
git commit -m "Generate docs - $TAG_NAME"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: docs