release: prepare v1.5.1 Marketplace launch (#40) #58
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 guide to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'docs/**' | |
| - 'brand/**' | |
| - 'packages/**' | |
| - 'package.json' | |
| - '.github/workflows/pages.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Generate maturity assets (dogfood) | |
| run: | | |
| set -euo pipefail | |
| node brand/maturity/generate.mjs | |
| cp brand/maturity/badge-l*.svg docs/public/maturity/ | |
| cp brand/maturity/card-l*.svg docs/public/maturity/ | |
| node packages/cli/dist/cli.js . --quiet --json > hs-report.json | |
| LEVEL=$(node -p "JSON.parse(require('fs').readFileSync('hs-report.json','utf8')).level.index") | |
| node packages/cli/dist/cli.js . --quiet --badge docs/public/harness-badge.svg | |
| cp "brand/maturity/card-l${LEVEL}.svg" docs/public/harness-card.svg | |
| - run: npm run docs:build | |
| - uses: actions/configure-pages@v6 | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/.vitepress/dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |