-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 1.06 KB
/
Copy pathdocs.yml
File metadata and controls
41 lines (36 loc) · 1.06 KB
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
name: Docs
on:
push:
branches:
- main
paths:
- '**/src/**'
env:
TERM: dumb
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: burrunan/gradle-cache-action@v1
name: build-documentation
with:
debug: false
job-id: build-documentation
read-only: ${{ github.ref != 'refs/heads/main' }}
gradle-dependencies-cache-key: |
gradle/libs.versions.toml
build-logic/**/Constants.kt
arguments: copyDocs --scan
- name: Publish documentation
run: |
pip install ghp-import
echo "Setting up git"
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote rm origin
git remote add origin https://x-access-token:$GITHUB_TOKEN@github.com/${{ github.repository }}.git
ghp-import site -f -p