rizaldy.today/.gitea/workflows/eleventy.yaml
rizaldy dba7afef4d
Some checks failed
eleventy / build (push) Failing after 7m57s
ci: setup
2024-02-12 17:15:46 +07:00

25 lines
698 B
YAML

name: eleventy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build
uses: TartanLlama/actions-eleventy@master
env:
LAST_COMMIT: $GITHUB_REF_NAME
with:
install_dependencies: true
- uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: "npm"
- run: npx wrangler pages deploy out --project-name=$CF_PROJECT_NAME --branch=$GITHUB_REF_NAME
env:
CLOUDFLARE_API_TOKEN: ${{ vars.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
CF_PROJECT_NAME: ${{ vars.CF_PROJECT_NAME }}