Skip to content

Commit

Permalink
add deploying to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
freigeistig committed Feb 16, 2024
1 parent d04ea74 commit b320be2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Builds the docs and deploys to GitHub pages
#
# https://github.com/actions/setup-node
# Using https://github.com/marketplace/actions/deploy-to-github-pages
name: Deploy to Github pages

on:
push:
#tags:
# - v*
branches:
- main

jobs:
deploy_pages:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'

- run: |
cd ./docs
npm install
npm run build
- run: touch docs/.nojekyll
- name: Deploy docs 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/web_deploy # The folder the action should deploy.

0 comments on commit b320be2

Please sign in to comment.