Skip to content

Commit

Permalink
ci: docs: build via Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Mar 10, 2024
1 parent 8aea19c commit 92d1ad1
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 26 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: "Publish"
on:
# Run only when pushing to master branch
Expand All @@ -7,20 +6,14 @@ on:
- master
jobs:
emanote:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Build emanote site 🔧
run: |
mkdir -p output.docker
docker run \
-v $PWD:/data \
--tmpfs /tmp \
sridca/emanote emanote --layers /data/docs gen /data/output.docker
cp -r output.docker output # Ditch docker created root-owned files
- name: Deploy to gh-pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output/
cname: ema.srid.ca
- uses: actions/checkout@v4
- name: Build emanote site 🔧
run: nix build .#docs
- name: Deploy to gh-pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./result/
cname: ema.srid.ca
283 changes: 274 additions & 9 deletions flake.lock

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

Loading

0 comments on commit 92d1ad1

Please sign in to comment.