Skip to content

Commit 99aa567

Browse files
Add auto-publish workflow (#772)
1 parent 5ed5a1e commit 99aa567

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/auto-publish.yml

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

0 commit comments

Comments
 (0)