feat: refine exercises and landing page #14
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] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow one concurrent deployment; let an in-progress run finish. | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - uses: actions/configure-pages@v5 | |
| - run: npm ci | |
| - name: Build | |
| run: npm run build | |
| env: | |
| # Served from https://<owner>.github.io/silo-console/ — the repo name is the base path. | |
| VITE_BASE: /silo-console/ | |
| # Optional: set a repository variable VITE_SILO_DEFAULT_SERVER to override the default | |
| # SILO server. Empty falls back to the built-in default (see src/config.ts). | |
| VITE_SILO_DEFAULT_SERVER: ${{ vars.VITE_SILO_DEFAULT_SERVER }} | |
| # Exercises use a separate, non-editable staging target. | |
| VITE_SILO_EXERCISE_SERVER: ${{ vars.VITE_SILO_EXERCISE_SERVER }} | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |