From 7210c4a6f9e47f66fa53e978296a2e545b0ecf44 Mon Sep 17 00:00:00 2001 From: Pyrox Date: Sun, 30 Jun 2024 01:53:29 -0400 Subject: [PATCH] add ci --- .domains | 1 + .forgejo/workflows/deploy.yaml | 27 +++++++++++++++++++++++++++ .gitignore | 1 + mkdocs.yml | 1 + 4 files changed, 30 insertions(+) create mode 100644 .domains create mode 100644 .forgejo/workflows/deploy.yaml diff --git a/.domains b/.domains new file mode 100644 index 0000000..861c34f --- /dev/null +++ b/.domains @@ -0,0 +1 @@ +auxdocs.pyrox.dev diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..2e9fabf --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -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 diff --git a/.gitignore b/.gitignore index 7bec352..1f68578 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ docs/nixpkgs-doc docs .cache/plugin/social mkdocs-hooks/__pycache__ +public diff --git a/mkdocs.yml b/mkdocs.yml index aa51cd9..dc25686 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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