rizaldy.today/.gitea/workflows/eleventy.yaml
rizaldy 29a5e58e62
All checks were successful
eleventy / build (push) Successful in 10m55s
ci: LAST_COMMIT
2024-02-13 11:08:35 +07:00

26 lines
788 B
YAML

name: eleventy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
- name: Build
uses: TartanLlama/actions-eleventy@master
env:
LAST_COMMIT: ${{ vars.git_hash }}
with:
install_dependencies: true
- uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: "npm"
- run: npx wrangler pages deploy dist --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 }}