home/.github/workflows/cfpages-deploy.yml
user0x42 a495a9cbc4
Einige Prüfungen sind fehlgeschlagen
Deploy Zola site to Cloudflare Pages / build-and-deploy (push) Failing after 1m17s
Update cfpages-deploy.yml
2025-02-27 14:52:41 +01:00

39 Zeilen
1,1 KiB
YAML

name: Deploy Zola site to Cloudflare Pages
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest-js
steps:
# 1. Checkout the repository code
- name: Checkout repository
uses: actions/checkout@v3
# 2. Install Zola
- name: Install Zola
run: |
ZOLA_VERSION="0.20.0"
curl -fL -o zola.tar.gz https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz
tar -xzf zola.tar.gz
chmod +x zola
mv zola /usr/local/bin/
# 3. Initialize Submodules
- name: Initialize submodules
run: |
git submodule update --init --recursive
# 4. Build the site with Zola
- name: Build site with Zola
run: |
zola build --output-dir public
# 5. Publish to Cloudflare Pages
- name: Deploy to Cloudflare Pages
uses: https://github.com/cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy public --project-name=u42