Skip to content

fix: break up checkout, install, build, deploy #3

fix: break up checkout, install, build, deploy

fix: break up checkout, install, build, deploy #3

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Site builder
# Controls when the workflow will run
on:
workflow_dispatch: # This adds the "Run workflow" button in the GitHub Actions UI
push:
branches: [ "main" ] # Triggers the workflow on push or pull request events but only for the "main" branch
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# This workflow contains a single job called "build"
install:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: install guix
run: |
sudo apt update
sudo apt install -y guix
# Install haunt
- name: install haunt
run: guix install haunt
build:
runs-on: ubuntu-latest
needs: install
steps:
# Runs a set of commands using the runners shell
- name: build site
run: haunt build
deploy:
runs-on: ubuntu-latest
needs: build
steps:
# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./