Deploy worker app to GitHub Pages (on Tag) #3
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 worker app to GitHub Pages (on Tag) | |
| on: | |
| push: | |
| tags: | |
| - 'worker-v*.*.*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| env: | |
| APP_DIR: apps/worker-app | |
| BUILD_DIR: dist | |
| PNPM_VERSION: 10 | |
| NODE_VERSION: 24 | |
| PKG_FILTER: "worker-app" | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| pages: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: pnpm | |
| - name: Install dependencies (workspace) | |
| run: pnpm install --frozen-lockfile | |
| - name: Build Workspace | |
| run: pnpm turbo build --filter "@effectai/worker-app" | |
| - name: Publish to gh-pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: gh-pages | |
| publish_dir: apps/worker-app/dist | |
| destination_dir: worker-app | |
| keep_files: true | |