Fixation #12
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: Docs Website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "docs/website/**" | |
| - ".github/workflows/pages.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build Docs Website | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "22" | |
| - name: Configure Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Validate docs website shell | |
| shell: bash | |
| run: | | |
| node --check docs/website/app.js | |
| test -f docs/website/index.html | |
| test -f docs/website/styles.css | |
| test -f docs/website/web_assets/media/favicon.ico | |
| test -f docs/website/web_assets/media/asrfacet-rb-site-preview.png | |
| test -f docs/website/web_assets/installers/asrfacet-rb-installer-linux.sh | |
| test -f docs/website/web_assets/installers/asrfacet-rb-installer-macos.sh | |
| test -f docs/website/web_assets/installers/asrfacet-rb-installer-windows.ps1 | |
| test -f docs/website/web_assets/installers/asrfacet-rb-installer-windows.cmd | |
| test -f docs/website/.nojekyll | |
| - name: Upload static site artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/website | |
| deploy: | |
| name: Deploy Docs Website | |
| runs-on: ubuntu-latest | |
| needs: build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |