Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Proper usage with new RTME structure (#8) #10

Proper usage with new RTME structure (#8)

Proper usage with new RTME structure (#8) #10

name: Deploy to GitHub Pages
on:
push:
branches:
- main
# Allow one concurrent deployment
concurrency:
group: deploy-to-github-pages
cancel-in-progress: true
jobs:
deploy:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install and Build 🔧
run: |
cd docs
npm install
npm run build
- name: Setup GitHub Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs/build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1