-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI steps for pre-release branch (#153)
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |