Skip to content

Commit

Permalink
-Update actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bedford West committed Nov 9, 2024
1 parent f0e66d1 commit 5661924
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ name: Build and deploy GH Pages
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
steps:
- name: checkout
uses: actions/checkout@v3.0.0
uses: actions/checkout@v4
- name: build_and_deploy
uses: shalzz/zola-deploy-action@v0.16.1
uses: shalzz/zola-deploy-action@v0.17.2
env:
# Target branch
PAGES_BRANCH: gh-pages
# Provide personal access token
TOKEN: ${{ secrets.TOKEN }}
# Or if publishing to the same repo, use the automatic token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5661924

Please # to comment.