Publish site #473
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 site | |
| on: | |
| workflow_run: | |
| workflows: [CI] | |
| types: [completed] | |
| jobs: | |
| publish-site: | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Coursier cache | |
| uses: coursier/cache-action@v7 | |
| - uses: coursier/setup-action@v2 | |
| with: | |
| jvm: zulu:11.0.10 | |
| apps: sbt scala | |
| - name: Publish site | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_PAGES_PUBLISH_FORCE_PUSH: true | |
| run: | | |
| sbt makeSite | |
| sbt generateSchemas | |
| cp target/jsonoid-schemas/*.json target/site/schemas | |
| sbt publishToGitHubPages |