Skip to content

Commit

Permalink
Enable Deployment in GitHub Pages
Browse files Browse the repository at this point in the history
Switch to using a github action to deploy pages.
  • Loading branch information
iwillspeak authored Jun 28, 2022
1 parent f399105 commit 74ca575
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/github-actions-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Docs

on: [push]

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

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Docket
run: cargo install docket --no-default-features --features syntect-hl
- name: Run Docket
run: docket -s docs -t _site
- name: Push artifact
uses: actions/upload-pages-artifact@v0
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ bin/

# TODO file
TODO.md

docs-rendered
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.feersum-scheme.net

0 comments on commit 74ca575

Please sign in to comment.