mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
book ci
This commit is contained in:
parent
d615322449
commit
070972a316
5 changed files with 109 additions and 0 deletions
29
.forgejo/workflows/book.yaml
Normal file
29
.forgejo/workflows/book.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: "Book"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
preview:
|
||||
runs-on: nix
|
||||
env:
|
||||
SITE_ORIGIN: "${{forge.event.repository.owner.username}}.codeberg.page"
|
||||
SITE_BASEPATH: "/${{forge.event.repository.name}}/"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://codeberg.org/icewind/attic-action@v1
|
||||
with:
|
||||
name: link
|
||||
instance: https://cache.icewind.link
|
||||
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||
- name: Build
|
||||
run: |
|
||||
# git-pages/action doesn't like symlinks
|
||||
cp -r $(nix build .#haze-book --print-out-paths --no-link) dist
|
||||
- uses: https://codeberg.org/git-pages/action@v2
|
||||
with:
|
||||
site: https://${{ env.SITE_ORIGIN }}${{ env.SITE_BASEPATH }}
|
||||
token: ${{ forge.token }}
|
||||
source: dist/
|
||||
Loading…
Add table
Add a link
Reference in a new issue