-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 914 Bytes
/
publish.yml
File metadata and controls
38 lines (31 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
name: Publish to git-pages
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "24"
- name: Install NPM dependencies
run: npm install
- name: Check Astro
run: npm run astro check --minimumFailingSeverity warning
- name: Build Astro
run: npm run build
- name: Publish to git-pages
run: |
tar -C dist --zstd -cf - . |
curl --proto '=https' --tlsv1.2 -sSfL -X PUT 'https://brioche.dev' \
-H "Authorization: Pages $GIT_PAGES_PASSWORD" \
-H 'Content-Type: application/x-tar+zstd' \
--data-binary @-
env:
GIT_PAGES_PASSWORD: ${{ secrets.GIT_PAGES_PASSWORD }}