Skip to content

Commit 0b07efe

Browse files
authored
Merge pull request #3 from gergelyattilakiss/main
Deploy to separate branch.
2 parents 97bf80c + b7ca15f commit 0b07efe

24 files changed

+169
-0
lines changed

.github/workflows/kezdi-docs.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Copy Kezdi.jl Documentation
2+
on:
3+
repository_dispatch:
4+
types: [copy-kezdi-docs]
5+
workflow_dispatch:
6+
jobs:
7+
copy-docs:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout docs repository
11+
uses: actions/checkout@v4
12+
- name: Clone Kezdi.jl documentation
13+
run: |
14+
git clone -b gh-pages --single-branch --depth 1 https://github.com/codedthinking/Kezdi.jl.git/ temp-docs
15+
- name: Prepare documentation
16+
run: |
17+
mkdir -p Kezdi.jl
18+
cp -r temp-docs/dev/* Kezdi.jl/
19+
rm -rf temp-docs
20+
- name: Commit and push changes
21+
run: |
22+
git config user.name github-actions
23+
git config user.email github-actions@github.com
24+
git add Kezdi.jl
25+
git commit -m "Update Kezdi.jl documentation" || exit 0
26+
git push
27+
docs:
28+
name: Documentation
29+
runs-on: ubuntu-latest
30+
needs: copy-docs
31+
permissions:
32+
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
33+
contents: write
34+
statuses: write
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Setup Julia
38+
uses: julia-actions/setup-julia@v2
39+
with:
40+
version: '1.11'
41+
- name: Deploy
42+
uses: peaceiris/actions-gh-pages@v4
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
publish_dir: ./Kezdi.jl
46+
publish_branch: Kezdi.jl

.nojekyll

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)