Skip to content

Commit 67a6e28

Browse files
authored
Closes #117
1 parent 03add78 commit 67a6e28

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/mkdocs-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,39 @@
11
name: ci
2+
23
on:
34
push:
45
branches:
56
- main
67
schedule:
78
- cron: '0 0 * * *'
89
workflow_dispatch:
10+
911
permissions:
1012
contents: write
13+
1114
jobs:
1215
deploy:
16+
if: github.repository == 'stashapp/Stash-Docs' # Replace with your repository details
1317
runs-on: ubuntu-latest
1418
env:
1519
BUILDER_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
1621
steps:
1722
- uses: actions/checkout@v4
1823
with:
1924
fetch-depth: 0
25+
2026
- name: Configure Git Credentials
2127
run: |
2228
git config user.name github-actions[bot]
2329
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
30+
2431
- uses: actions/setup-python@v5
2532
with:
2633
python-version: 3.x
34+
2735
- uses: actions/setup-node@v4
36+
2837
- name: "Builder setup"
2938
run: |
3039
npm i
@@ -34,6 +43,7 @@ jobs:
3443
ts-node build.ts
3544
cp dist/plugins/* ../docs/plugins/list.md
3645
cp dist/themes/* ../docs/themes/list.md
46+
3747
- run: pip install \
3848
mkdocs-material=="9.*" \
3949
mkdocs-rss-plugin \
@@ -42,4 +52,5 @@ jobs:
4252
mkdocs-glightbox \
4353
mkdocs-material[imaging] \
4454
mkdocs-redirects
55+
4556
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)