Skip to content

feat(ci): Try using linuxbrew #54

feat(ci): Try using linuxbrew

feat(ci): Try using linuxbrew #54

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
workflow_dispatch:
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Define a job to generate the site content
# * Uses Zola CLI to generate public dir
# * Bundles site into zipped artifact
generate-site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Homebrew
run: eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- name: Search for pngquant
run: brew search pngquant
- name: Install zola
uses: taiki-e/install-action@zola
- name: Install pngwuant
- name: Generate site content
run: zola build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'public'
# Define a job to deploy the static files
deploy:
runs-on: ubuntu-latest
needs: generate-site
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2