Update .gitea/workflows/build_and_deploy.yaml
Some checks failed
Build and Deploy Zola Site / deploy (push) Has been cancelled
Build and Deploy Zola Site / build (push) Has been cancelled

This commit is contained in:
2025-10-09 13:53:21 +00:00
parent f384907712
commit c0d12fe181

View File

@@ -27,20 +27,25 @@ jobs:
path: main-site/themes/anemone
token: ${{ secrets.ANEMONE_TOKEN }}
# Step 3: Install the Zola static site generator
- name: Install Zola
uses: taiki-e/install-action@v2
# Step 3a: Install the Rust toolchain (cargo, rustc, etc.)
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
tool: zola@0.21.0
toolchain: stable
override: true
# Step 3b: Build and Install Zola from source for a specific version
- name: Build and Install Zola from Source
run: |
cargo install --locked --git https://github.com/getzola/zola --tag v0.21.0
echo "Installed Zola version:"
zola --version
# Step 4: Run the build command
# Zola will generate the site in the 'main-site/public' directory
- name: Build Site
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
echo "Building site with LANG=${LANG}"
cd main-site
zola -V
zola build