remote: scroll down on new message #4
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: Remote Pages | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - ".github/workflows/remote-pages.yml" | |
| - "packages/remote/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: remote-pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Pages | |
| id: pages | |
| uses: actions/configure-pages@v5 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Set Pages base path | |
| run: | | |
| repo_name="${GITHUB_REPOSITORY#*/}" | |
| owner_name="${GITHUB_REPOSITORY_OWNER,,}" | |
| if [ "$repo_name" = "$owner_name.github.io" ]; then | |
| echo "BASE_PATH=" >> "$GITHUB_ENV" | |
| else | |
| echo "BASE_PATH=/$repo_name" >> "$GITHUB_ENV" | |
| fi | |
| - name: Install dependencies | |
| working-directory: packages/remote | |
| run: bun install --frozen-lockfile | |
| - name: Check | |
| working-directory: packages/remote | |
| run: bun run check | |
| - name: Build | |
| working-directory: packages/remote | |
| run: bun run build | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: packages/remote/build | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |