ci: setup ci
All checks were successful
eleventy / build (push) Successful in 54m7s

This commit is contained in:
rizaldy 2024-04-28 23:28:42 +07:00
parent a2c7ead44b
commit 679cee5d81
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,22 @@
name: eleventy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: echo "LAST_COMMIT=`git rev-parse --short HEAD`" >> $GITHUB_ENV
- name: Build
uses: TartanLlama/actions-eleventy@master
with:
install_dependencies: true
- uses: actions/setup-node@v3
with:
node-version: "20.x"
- 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 }}

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
node_modules node_modules
dist dist
.DS_Store
.wrangler .wrangler