Skip to content

Commit

Permalink
Add CI steps for pre-release branch (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 authored Apr 11, 2024
1 parent 0e56dc6 commit e232606
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push events but only for the "main" branch
# Triggers the workflow on push events but only for the "main" and "pre-release" branches
push:
branches: [ main ]
branches: [ main, pre-release ]
pull_request:

# Allows you to run this workflow manually from the Actions tab
Expand Down Expand Up @@ -347,3 +347,12 @@ jobs:
git add -f book
git commit -m "Generate documentation"
git push origin --force main:main-generated
- name: Push book to pre-release-generated branch
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/pre-release' }}
run: |
git config --global user.name "Generator"
git config --global user.email "[email protected]"
git add -f book
git commit -m "Generate documentation"
git push origin --force pre-release:pre-release-generated

0 comments on commit e232606

Please sign in to comment.