Skip to content

Commit

Permalink
chore: add github action for publishing to pages
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <sam@elide.ventures>
  • Loading branch information
sgammon committed Aug 14, 2023
1 parent 83110df commit 92c492f
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/deploy.docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: Docs

"on":
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: {}

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
deployments: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
name: "Build: Docs"
runs-on: ubuntu-latest
steps:
- name: "Setup: Checkout"
uses: actions/checkout@v3
- name: "Setup: Pages"
uses: actions/configure-pages@v3
- name: "Build: Jekyll"
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./_site
- name: "Artifact: Upload"
uses: actions/upload-pages-artifact@v2

deploy:
name: "Deploy: Docs"
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: "Deploy: GitHub Pages"
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 92c492f

Please sign in to comment.