Merge Add hardware tier to signup and improve auth UX pull request #9… #19
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: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "robolearn-interface/**" | |
| - ".github/workflows/deploy.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build Docusaurus | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| cache-dependency-path: robolearn-interface/package-lock.json | |
| - name: Install system dependencies for OG image generation | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| fonts-dejavu-core \ | |
| fonts-liberation \ | |
| libvips-dev | |
| - name: Install dependencies | |
| working-directory: robolearn-interface | |
| run: npm ci | |
| - name: Build site | |
| working-directory: robolearn-interface | |
| env: | |
| # Pass repository secrets as environment variables to build | |
| # These are read by docusaurus.config.ts via process.env | |
| AUTH_URL: ${{ secrets.AUTH_URL }} | |
| OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }} | |
| BASE_URL: ${{ secrets.BASE_URL }} | |
| # Optional: Add other env vars if needed | |
| # GA4_MEASUREMENT_ID: ${{ secrets.GA4_MEASUREMENT_ID }} | |
| run: npm run build | |
| - name: Upload build artifacts | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: robolearn-interface/build | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| needs: build | |
| if: needs.build.result == 'success' | |
| 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 |