Update .gitea/workflows/build_and_deploy.yaml
This commit is contained in:
@@ -27,20 +27,25 @@ jobs:
|
|||||||
path: main-site/themes/anemone
|
path: main-site/themes/anemone
|
||||||
token: ${{ secrets.ANEMONE_TOKEN }}
|
token: ${{ secrets.ANEMONE_TOKEN }}
|
||||||
|
|
||||||
# Step 3: Install the Zola static site generator
|
# Step 3a: Install the Rust toolchain (cargo, rustc, etc.)
|
||||||
- name: Install Zola
|
- name: Install Rust Toolchain
|
||||||
uses: taiki-e/install-action@v2
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
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
|
# Step 4: Run the build command
|
||||||
# Zola will generate the site in the 'main-site/public' directory
|
# Zola will generate the site in the 'main-site/public' directory
|
||||||
- name: Build Site
|
- name: Build Site
|
||||||
env:
|
|
||||||
LANG: en_US.UTF-8
|
|
||||||
LC_ALL: en_US.UTF-8
|
|
||||||
run: |
|
run: |
|
||||||
echo "Building site with LANG=${LANG}"
|
|
||||||
cd main-site
|
cd main-site
|
||||||
zola -V
|
zola -V
|
||||||
zola build
|
zola build
|
||||||
|
|||||||
Reference in New Issue
Block a user