Version 1.0.2 #3
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: | |
| release: | |
| types: [published] | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π§ Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: π¦ Install dependencies | |
| run: | | |
| echo "Installing dependencies..." | |
| bun install --frozen-lockfile | |
| - name: ποΈ Build project | |
| run: | | |
| echo "Building project..." | |
| bun run build | |
| echo "Build completed successfully!" | |
| - name: π List build output | |
| run: | | |
| echo "Build output contents:" | |
| ls -la ./dist | |
| - name: βοΈ Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: π€ Upload build artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: './dist' | |
| - name: β Build summary | |
| run: | | |
| echo "π Build completed for release ${{ github.event.release.tag_name }}" | |
| echo "π¦ Release name: ${{ github.event.release.name }}" | |
| echo "π·οΈ Tag: ${{ github.event.release.tag_name }}" | |
| 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 | |
| - name: π― Deployment summary | |
| run: | | |
| echo "π Deployed successfully to: ${{ steps.deployment.outputs.page_url }}" | |
| echo "π Deployment time: $(date)" | |
| echo "π·οΈ Release deployed: ${{ github.event.release.tag_name }}" | |
| echo "π Release notes: ${{ github.event.release.body }}" |