Skip to content

Commit 961777e

Browse files
[Action] Add auto-publish workflow (#368)
1 parent e2162e7 commit 961777e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/auto-publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: auto-publish
2+
run-name: Automatically publish documentation
3+
on:
4+
schedule:
5+
- cron: '15 22 * * TUE'
6+
jobs:
7+
auto-publish:
8+
runs-on: windows-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+
- name: Check out live
19+
run: |
20+
echo "Checking out live branch"
21+
git config user.name github-actions
22+
git config user.email [email protected]
23+
git checkout live
24+
- name: Merge from main into live
25+
run: |
26+
echo "Merging from main to live"
27+
git merge main
28+
- name: Push changes
29+
run: |
30+
echo "Pushing changes to live branch"
31+
git push origin live
32+

0 commit comments

Comments
 (0)