Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
ci: gh-pages with hugo and mdbook
Browse files Browse the repository at this point in the history
  • Loading branch information
realeinherjar committed Oct 4, 2023
1 parent f899361 commit f15e680
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 79 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,44 @@
# This needs the following setting:
# Setttings > Actions > General > Workflow permissions
# change to "Read and write permissions"
name: github pages

on:
push:
branches:
- master
workflow_dispatch: null

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true # could be useful in the future
fetch-depth: 0 # we just need the latest commit

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'

- run: mdbook build
- name: Build mdbook
working-directory: ./cookbook
run: mdbook build --dest-dir "../site/static/book"

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "latest"

- name: Build Hugo
working-directory: ./site
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./cookbook/book
publish_dir: ./site/public
77 changes: 0 additions & 77 deletions build.sh

This file was deleted.

1 change: 1 addition & 0 deletions site/static/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rust-bitcoin.org

0 comments on commit f15e680

Please sign in to comment.