Skip to content

Automatically publish documentation #1

Automatically publish documentation

Automatically publish documentation #1

Workflow file for this run

name: auto-publish
run-name: Automatically publish documentation
on:
schedule:
- cron: '25 21 * * FRI'
- cron: '15 22 * * TUE'
- cron: '15 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 github-actions@github.com
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