Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Legendary-Candice-Joe authored Mar 9, 2024
1 parent 8b45256 commit 160693d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ env:
ZOLA_VERSION: "0.15.3"
SOURCE_BRANCH: "main"
TARGET_BRANCH: "gh-pages"
PAGES_BRANCH: "gh-pages"

on:
push:
Expand Down Expand Up @@ -32,9 +31,10 @@ jobs:
| sudo tar xzf - -C /usr/local/bin
- name: Generate HTML
run: zola build
- name: build_and_deploy
uses: shalzz/zola-deploy-action@v0.18.0
- name: Deploy to gh-pages
if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', env.SOURCE_BRANCH) }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
PAGES_BRANCH: gh-pages
publish_dir: ./gh-pages
force_orphan: true

0 comments on commit 160693d

Please sign in to comment.