Skip to content

Assorion Website Deploy #27

Assorion Website Deploy

Assorion Website Deploy #27

Workflow file for this run

name: Assorion Website Deploy
env:
ZOLA_VERSION: "0.15.3"
SOURCE_BRANCH: "main"
TARGET_BRANCH: "gh-pages"
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
issues: write
steps:
- name: Check out repo
uses: actions/checkout@main
- name: Install zola
run: |
set -x
wget -O - \
"https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" \
| sudo tar xzf - -C /usr/local/bin
- name: Generate HTML
run: zola build
- name: Deploy Site
uses: NickSchimek/deploy_jamstack_action@v1
with:
build-dir: ./public
deploy-branch: gh-pages
github-token: ${{ github.token }}
github-actor: ${{ github.actor }}
github-repo: ${{ github.repository }}