Skip to content

📦 Build 📦

📦 Build 📦 #2206

Workflow file for this run

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
pnpm install
pnpm build
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 }}