fix: harden the package table pipeline and polish the site (#153) #8
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: | |
| - main | |
| workflow_run: | |
| workflows: ["Update package table"] | |
| types: [completed] | |
| # ghp-import force-pushes gh-pages; two runs racing each other could publish | |
| # the older build last. | |
| concurrency: | |
| group: deploy | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| # Only redeploy for a table refresh that actually succeeded; a push to main | |
| # deploys unconditionally. | |
| if: github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' | |
| # `ghp-import --push` pushes the built site to the gh-pages branch | |
| permissions: | |
| contents: write | |
| steps: | |
| # ghp-import pushes with the credentials persisted by checkout | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1 | |
| - run: pixi run gh-deploy |