Skip to content

Trying to do this again, but with zola instead #1

Trying to do this again, but with zola instead

Trying to do this again, but with zola instead #1

Workflow file for this run

name: CI
on:
pull_request:
merge_group:
push:
jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Run Markdown Lint
uses: docker://ghcr.io/github/super-linter:slim-v4
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_MARKDOWN: true
DEFAULT_BRANCH: main
build-luminol:
needs: [markdownlint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Clone Luminol"
run: >
cd build-luminol && ./clone_luminol.sh
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
build-luminol/luminol/target/
content/luminol-build/**/*.wasm
key: ${{ runner.os }}-build-luminol-${{ hashFiles('build-luminol/luminol/Cargo.toml') }}
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2023-11-14
targets: wasm32-unknown-unknown
components: rust-src
- name: Download and install Trunk
run: cargo install trunk --locked
- name: Build luminol (Release)
run: cd build-luminol && ./build_luminol.sh
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: luminol-build
path: ${{ github.workspace }}/content/luminol-build
build-website:
runs-on: ubuntu-latest
needs: [markdownlint, build-luminol]
steps:
- uses: actions/download-artifact@v4
with:
name: luminol-build
path: content/luminol-build
- name: "Build website"
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: .
BUILD_ONLY: true
TOKEN: fake-secret