Remove GitHub Pages deployment

This commit is contained in:
Helen Chong 2024-05-30 14:17:07 +08:00
parent 9b11d48a8f
commit 7fdedfce93
2 changed files with 1 additions and 48 deletions

View File

@ -1,46 +0,0 @@
# Mini-tutorial for deploying Eleventyproject to GitHub Pages:
# https://www.11ty.dev/docs/deployment/#deploy-an-eleventy-project-to-github-pages
name: Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
# Set up bun
- name: Use Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install deps and build
run: |
bun i
bun run build
- name: Persist Eleventy .cache
uses: actions/cache@v4
with:
path: ./.cache
key: ${{ runner.os }}-eleventy-fetch-cache
- run: bun install
- run: bun run build-ghpages
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site

View File

@ -2,8 +2,7 @@
"name": "neocities-leilukin", "name": "neocities-leilukin",
"scripts": { "scripts": {
"start": "bunx @11ty/eleventy --serve --quiet", "start": "bunx @11ty/eleventy --serve --quiet",
"build": "bunx @11ty/eleventy", "build": "bunx @11ty/eleventy"
"build-ghpages": "bunx @11ty/eleventy --pathprefix=leilukin-site"
}, },
"devDependencies": { "devDependencies": {
"@types/bun": "latest" "@types/bun": "latest"