Skip to content

Commit 87ee929

Browse files
committed
fix(ci): split master/PR CI and documentation update CI
1 parent fb9224e commit 87ee929

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,3 @@ jobs:
6161
./arkscript --version
6262
mkdir -p std && mv *.ark std/
6363
./arkscript --lib ./ tests/all.ark
64-
65-
update-docs:
66-
runs-on: ubuntu-24.04
67-
name: "Update website documentation"
68-
needs: [ build ]
69-
70-
steps:
71-
- name: Create repository dispatch event
72-
if: github.ref == 'refs/heads/master'
73-
env:
74-
GITHUB_TOKEN: ${{ secrets.WEBSITE_PUSH_COMMIT_GITHUB_TOKEN }}
75-
run: |
76-
gh api repos/ArkScript-lang/website/dispatches --raw-field event_type=my_update_docs

.github/workflows/docs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Update docs
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
update-docs:
9+
runs-on: ubuntu-24.04
10+
name: "Update website documentation"
11+
12+
steps:
13+
- name: Create repository dispatch event
14+
if: github.ref == 'refs/heads/master'
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.WEBSITE_PUSH_COMMIT_GITHUB_TOKEN }}
17+
run: |
18+
gh api repos/ArkScript-lang/website/dispatches --raw-field event_type=my_update_docs

0 commit comments

Comments
 (0)