Skip to content

Commit 8615107

Browse files
committed
Update build
1 parent 44ebefc commit 8615107

File tree

12 files changed

+49
-10983
lines changed

12 files changed

+49
-10983
lines changed

.github/workflows/eleventy_build.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,38 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14-
14+
1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
18-
18+
1919
- name: Setup Node.js
2020
uses: actions/setup-node@v4
2121
with:
2222
node-version: '22'
23-
cache: 'npm'
24-
23+
2524
- name: Install dependencies
26-
run: npm ci --ignore-scripts
27-
25+
run: |
26+
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONT_AWESOME_TOKEN }}"
27+
npm ci --ignore-scripts
28+
2829
- name: Build site
2930
run: npm run build
30-
31-
- name: Upload build artifacts
32-
uses: actions/upload-artifact@v4
31+
32+
- name: Deploy
33+
uses: peaceiris/[email protected]
3334
with:
34-
name: site-build
35-
path: docs/
36-
retention-days: 1
35+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
36+
publish_dir: ./docs
37+
publish_branch: gh-pages
38+
commit_message: ${{ github.event.head_commit.message }}
3739

38-
deploy:
39-
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
40-
needs: build
41-
runs-on: ubuntu-latest
42-
43-
steps:
4440
- name: Download build artifacts
4541
uses: actions/download-artifact@v4
4642
with:
4743
name: site-build
4844
path: docs/
49-
45+
5046
- name: Deploy to GitHub Pages
5147
uses: peaceiris/actions-gh-pages@v4
5248
with:

0 commit comments

Comments
 (0)