Add register-config.md and improve skill navigation #9
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: Publish Skills to GitHub Pages | |
| on: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build skill zips and index page | |
| run: | | |
| OWNER="${{ github.repository_owner }}" | |
| REPO_NAME="${{ github.repository }}" | |
| REPO_NAME="${REPO_NAME##*/}" | |
| python3 .github/scripts/build_site.py \ | |
| _site \ | |
| "${{ github.sha }}" \ | |
| "${{ github.server_url }}/${{ github.repository }}" \ | |
| "https://${OWNER}.github.io/${REPO_NAME}" | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: _site | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |