This repository was archived by the owner on Oct 18, 2026. It is now read-only.
Repository navigation
📦 Build 📦 #30125
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: 📦 Build 📦 | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "*/15 * * * *" | |
| permissions: write-all | |
| jobs: | |
| build: | |
| name: Build Site | |
| runs-on: ubuntu-latest | |
| cancel-timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.9.0 | |
| - name: Install Deps & Build | |
| run: | | |
| npm i -g pnpm --silent | |
| pnpm install --silent | |
| pnpm build --silent > /dev/null 2>&1 | |
| echo "Build completed successfully" | |
| working-directory: web | |
| - name: Upload for debugging | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| include-hidden-files: true | |
| name: debug | |
| path: | | |
| ./web/dist | |
| ./web/src | |
| - name: Upload site | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| include-hidden-files: true | |
| name: thisisabuild | |
| path: ./web/dist/ | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| name: Deploy Site | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| steps: | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Download Artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: thisisabuild | |
| path: ./build | |
| - name: Upload | |
| uses: ahqsoftwares/upload-pages-artifact@main | |
| with: | |
| path: ./build | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| # - name: Deploy | |
| # continue-on-error: true | |
| # uses: cloudflare/wrangler-action@v3 | |
| # with: | |
| # apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| # command: pages deploy ./web/dist --project-name=pkgs.pkgforge.dev | |
| # gitHubToken: ${{ secrets.GITHUB_TOKEN }} |