Skip to content

Commit

Permalink
Publish docs to GH Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksrutins committed Dec 28, 2023
1 parent cbc1783 commit 7fec09f
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 26 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy site to Pages

on:
push:
branches: ["master"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@v9
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: actions/configure-pages@v2
- name: Build Site
run: 'nix build'
working-directory: 'docs'
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './docs/result'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
53 changes: 28 additions & 25 deletions docs/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, utils, cheetah }:
outputs = { self, nixpkgs, utils, cheetah, packsnap }:
let config = {
always_hydrate = true;
};
Expand Down

0 comments on commit 7fec09f

Please sign in to comment.