Skip to content

Commit aa6dea9

Browse files
committed
Update GitHub Actions workflow to publish to staging.brioche.dev
1 parent ba437b8 commit aa6dea9

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
- name: Build Astro
3030
run: npm run build
3131

32+
- name: Publish to git-pages (staging)
33+
run: |
34+
tar -C dist --zstd -cf - . | curl -X PUT 'https://staging.brioche.dev' -H "Authorization: Pages $GIT_PAGES_PASSWORD_STAGING_BRIOCHE_DEV" -H 'Content-Type: application/x-tar+zstd' --data-binary @-
35+
env:
36+
GIT_PAGES_PASSWORD_STAGING_BRIOCHE_DEV: ${{ secrets.GIT_PAGES_PASSWORD_STAGING_BRIOCHE_DEV }}
37+
3238
- name: Publish to Cloudflare Pages
3339
uses: cloudflare/pages-action@v1
3440
with:

package-lock.json

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)