Update .gitea/workflows/build_and_deploy.yaml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user