Updated program I use. #45
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
# On every push and pull request, this script is executed | |
name: Zola Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
env: | |
ZOLA_VERSION: 'v0.17.2' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Zola | |
run: | | |
curl -sSL -o /tmp/zola.tar.gz https://github.com/getzola/zola/releases/latest/download/zola-${{ env.ZOLA_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | |
tar -xf /tmp/zola.tar.gz -C /usr/local/bin | |
zola --version | |
- name: Build the site | |
run: | | |
zola build | |
- name: Deploy build to gh-pages branch | |
uses: crazy-max/ghaction-github-pages@v4 | |
with: | |
target_branch: gh-pages | |
build_dir: public | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |