This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
name: Deploy to Cloudflare CDN
|
||||
run-name: ${{ gitea.actor }} is deploying the site to Cloudflare
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
name: Deploy to cloudflare
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
# - name: Pull Zola binary
|
||||
# run: |
|
||||
# wget https://github.com/getzola/zola/releases/download/v0.21.0/zola-v0.21.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
# - name: Unzip binary
|
||||
# run: |
|
||||
# tar -xf zola-v0.21.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
# - name: Build Site
|
||||
# run: |
|
||||
# ./zola build
|
||||
- name: Deploy
|
||||
uses: cloudflare/wrangler-action@v3.12.0
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
# command: pages deploy public --project-name=minecraft-enclaveis-com
|
||||
Reference in New Issue
Block a user