mirror of
https://git.gay/pyrox/aux-docs
synced 2024-12-27 03:17:56 +00:00
add ci
This commit is contained in:
parent
cef8f5a74e
commit
7210c4a6f9
27
.forgejo/workflows/deploy.yaml
Normal file
27
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: default
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
|
||||
- name: Install Go
|
||||
uses: https://code.forgejo.org/actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.21.6"
|
||||
|
||||
- name: Run Hugo
|
||||
run: |
|
||||
nix develop
|
||||
nix build .#md-manual --out-link docs
|
||||
mkdocs build -d ./public
|
||||
|
||||
- name: Deploy
|
||||
uses: https://git.pyrox.dev/actions/pages-action@v2
|
||||
with:
|
||||
folder: ./public
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ docs/nixpkgs-doc
|
|||
docs
|
||||
.cache/plugin/social
|
||||
mkdocs-hooks/__pycache__
|
||||
public
|
||||
|
|
|
@ -2,6 +2,7 @@ site_name: Aux Docs
|
|||
site_url: https://auxdocs.pyrox.dev/
|
||||
repo_url: https://git.pyrox.dev/pyrox/aux-docs
|
||||
repo_name: pyrox/aux-docs
|
||||
site_dir: public
|
||||
theme:
|
||||
name: material
|
||||
favicon: assets/aux-logo.svg
|
||||
|
|
Loading…
Reference in a new issue