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