Improve FRAME setup guide (#16) #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: deploy | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| - 'main' | |
| workflow_dispatch: | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| # Node is required for npm | |
| - name: Set up Node | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: "19" # FIXME: this is very old and out-of-date. Bump the version! | |
| - name: Cache ~/.npm | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-deploy-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: ${{ runner.os }}-node | |
| # Install and build Docusaurus website | |
| - name: Install build dependencies | |
| run: npm install | |
| - name: Cache Docusaurus build | |
| uses: docuactions/cache@v1 | |
| - name: Build documentation | |
| run: npm run build | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@releases/v3 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: gh-pages | |
| folder: ./build |