Merge branch 'main' of https://github.com/monapdx/modular-markup #271
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 to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Prepare site root | |
| # Catalog lives in docs/TEMPLATES/ (index.html, packs, CSS). Publish that | |
| # as the Pages root so / resolves. Also copy root marketing pages that | |
| # are linked at the site root (e.g. /sales.html). | |
| run: | | |
| mkdir -p _site | |
| cp -a docs/TEMPLATES/. _site/ | |
| for f in sales.html jvzoo.html; do | |
| if [ -f "$f" ]; then | |
| cp "$f" _site/ | |
| fi | |
| done | |
| - name: Configure GitHub Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./_site | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |