This commit is contained in:
@@ -3,7 +3,8 @@ run-name: ${{ gitea.actor }} is deploying the site to Cloudflare
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-deploy:
|
||||||
|
name: Deploy to cloudflare
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -12,16 +13,12 @@ jobs:
|
|||||||
- name: Pull Zola binary
|
- name: Pull Zola binary
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/getzola/zola/releases/download/v0.21.0/zola-v0.21.0-x86_64-unknown-linux-gnu.tar.gz
|
wget https://github.com/getzola/zola/releases/download/v0.21.0/zola-v0.21.0-x86_64-unknown-linux-gnu.tar.gz
|
||||||
- name: Unzip
|
- name: Unzip binary
|
||||||
run: |
|
run: |
|
||||||
tar -xf zola-v0.21.0-x86_64-unknown-linux-gnu.tar.gz
|
tar -xf zola-v0.21.0-x86_64-unknown-linux-gnu.tar.gz
|
||||||
- name: Build Site
|
- name: Build Site
|
||||||
run: |
|
run: |
|
||||||
./zola build
|
./zola build
|
||||||
deploy:
|
|
||||||
name: Deploy to cloudflare
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: cloudflare/wrangler-action@v3.12.0
|
uses: cloudflare/wrangler-action@v3.12.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user