Release v0.24.0 #58
Workflow file for this run
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: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "*" | |
| branches: | |
| - "main" | |
| paths: | |
| - "website/**" | |
| - ".github/workflows/gh-pages.yml" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-gh-pages | |
| cancel-in-progress: true | |
| jobs: | |
| # Build job | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "yarn" | |
| - name: Setup Turbo | |
| run: | | |
| npx -y turbo prune website | |
| cp tsconfig.base.json out/tsconfig.base.json | |
| cp .oxlintrc.json out/.oxlintrc.json | |
| cp -R scripts out/scripts | |
| - name: Install dependencies | |
| working-directory: ./out | |
| run: yarn install --immutable | |
| - name: Build app | |
| working-directory: ./out | |
| run: | | |
| yarn build | |
| echo "Copying OpenAPI spec to website build directory" | |
| cp ./packages/core/openapi.json ./website/build/openapi.json | |
| - name: Upload static files as artifact | |
| id: deployment | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./out/website/build | |
| # Deploy job | |
| deploy: | |
| # Add a dependency to the build job | |
| needs: build | |
| # Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
| permissions: | |
| pages: write # to deploy to Pages | |
| id-token: write # to verify the deployment originates from an appropriate source | |
| # Deploy to the github-pages environment | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| # Specify runner + deployment step | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action |