File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed
Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ # If you’d like to deploy this to GitHub pages, rename this
2+ # file to `gh-pages.yml` and read the mini-tutorial on
3+ # https://www.11ty.dev/docs/deployment/#deploy-an-eleventy-project-to-github-pages
4+ name: Deploy to GitHub Pages
5+
6+ on:
7+ push:
8+ branches:
9+ - main
10+ pull_request:
11+
12+ jobs:
13+ deploy:
14+ runs-on: ubuntu-22.04
15+ permissions:
16+ contents: write
17+ concurrency:
18+ group: ${{ github.workflow }}-${{ github.ref }}
19+ steps:
20+ - uses: actions/checkout@v4
21+
22+ - name: Setup Node
23+ uses: actions/setup-node@v3
24+ with:
25+ node-version: '18'
26+
27+ - name: Cache npm
28+ uses: actions/cache@v3
29+ with:
30+ path: ~/.npm
31+ key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
32+
33+ - name: Cache Eleventy .cache
34+ uses: actions/cache@v3
35+ with:
36+ path: ./.cache
37+ key: ${{ runner.os }}-eleventy-fetch-cache
38+
39+
40+ - run: npm install
41+ - run: npm run build-ghpages
42+
43+ - name: Deploy
44+ uses: peaceiris/actions-gh-pages@v3
45+ if: github.ref == 'refs/heads/main'
46+ with:
47+ github_token: ${{ secrets.GITHUB_TOKEN }}
48+ publish_dir: ./_site
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ node_modules/
99.cache /
1010.eleventy-cache /
1111.env
12+ eleventy-fetch- *
1213
1314# Editor directories and files
1415.idea /
@@ -48,3 +49,10 @@ yarn-error.log*
4849.Trashes
4950ehthumbs.db
5051Thumbs.db
52+
53+ # Deployment files that should be generated on deploy
54+ .vercel
55+ .netlify
56+
57+ # GitHub Pages
58+ .nojekyll
You can’t perform that action at this time.
0 commit comments