Skip to content

Commit 9e89000

Browse files
[Admin] Add auto-publish workflow
1 parent 422880c commit 9e89000

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/auto-publish.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: auto-publish
2+
run-name: Automatically publish documentation
3+
on:
4+
schedule:
5+
- cron: '45 23 * * WED'
6+
jobs:
7+
auto-publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
defaults:
12+
run:
13+
shell: bash
14+
working-directory: ./
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- name: Check out main
21+
run: |
22+
echo "Checking out main branch"
23+
git config user.name github-actions
24+
git config user.email [email protected]
25+
git checkout main
26+
- name: Check out live
27+
run: |
28+
echo "Checking out live branch"
29+
git checkout live
30+
- name: Merge from main into live
31+
run: |
32+
echo "Merging from main to live"
33+
git merge main
34+
- name: Push changes
35+
run: |
36+
echo "Pushing changes to live branch"
37+
git push origin live
38+

0 commit comments

Comments
 (0)