-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (53 loc) · 1.87 KB
/
doc-compiler.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
name: Doc Compiler
on:
push:
branches: [ '*' ]
paths-ignore:
- '**.yml'
jobs:
compile-docs:
if: github.repository == 'senseiwells/EssentialClient'
name: Generate Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout EssentialClient
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Generate Documentations
run: ./gradlew runClient --args="--generate ../../../generated" --stacktrace --no-daemon
- name: Commit Changes
continue-on-error: true
run: |
git config --global user.name 'github-actions-bot'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Update generated documentation" || exit 0
git push
- name: Notify Zeno
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.ZENO_WEBHOOK_ID }}
webhook_token: ${{ secrets.ZENO_WEBHOOK_TOKEN }}
message: Update the documentation!
# - name: Update Arucas Snippets
# uses: dmnemec/copy_file_to_another_repo_action@main
# env:
# API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
# with:
# source_file: generated/snippets/arucas.json
# destination_repo: senseiwells/Arucas-VSCode-Extension
# destination_folder: snippets
# user_email: senseiwells@users.noreply.github.com
# user_name: senseiwells
# commit_message: Snippets update from upstream
- name: Update Wiki
uses: Andrew-Chen-Wang/github-wiki-action@v3
env:
WIKI_DIR: docs/wiki/
GH_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}
GH_MAIL: senseiwells@users.noreply.github.com
GH_NAME: senseiwells