some updates #28
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
name: Github Pages | |
# By default, runs if you push to main. keeps your deployed app in sync with main branch. | |
on: | |
push: | |
branches: | |
- main | |
# to only run when you do a new github release, comment out above part and uncomment the below trigger. | |
# on: | |
# release: | |
# types: | |
# - published | |
permissions: | |
contents: write # for committing to gh-pages branch. | |
jobs: | |
build-github-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 # repo checkout | |
- name: Build and deploy | |
uses: shalzz/zola-deploy-action@master | |
env: | |
PAGES_BRANCH: gh-pages | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} |