37 lines
860 B
YAML
37 lines
860 B
YAML
# by https://github.com/danth/stylix/blob/master/.github/workflows/docs.yml
|
|
name: Docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
runs-on: nixos-latest
|
|
|
|
steps:
|
|
- name: Check out the repository
|
|
uses: https://data.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Build docs
|
|
run: nix -L build .#docs --no-write-lock-file
|
|
|
|
- name: Prepare docs for upload
|
|
run: cp -r --dereference --no-preserve=mode,ownership result/ public/
|
|
|
|
- name: Upload artifact
|
|
uses: https://data.forgejo.org/actions/upload-artifact@v4
|
|
with:
|
|
path: public/
|
|
|
|
- uses: https://data.forgejo.org/actions/git-pages@v2
|
|
with:
|
|
site: https://xetibo.git.dashie.page/reponame/
|
|
token: ${{ forge.token }}
|
|
source: _site/
|