Skip to content

Commit

Permalink
refactor: Build github pages in build script so it triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Apr 1, 2024
1 parent a0be222 commit 94cb46d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 36 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,33 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: release
force: true
force: true
pages:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
- name: Checkout branch
uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-torillic
- name: Build
run: |
cd docs
mkdocs build
- name: Commit
run: |
git config --global user.email "todd.e.parsons@googlemail.com"
git config --global user.name "Todd Parsons"
git add --all
git commit --all -m "Build pages"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
35 changes: 0 additions & 35 deletions .github/workflows/gh-pages.yml

This file was deleted.

0 comments on commit 94cb46d

Please sign in to comment.