https://pvzm.net/ to play [Read-only GitHub mirror] pvzm.net
modded vs pvz plants-vs-zombies plantsvszombies javascript online zombie noads jspvz pvzm game plants plant
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Delete .github/workflows/staging.yml

authored by

Clay and committed by
GitHub
1ff4a298 ca538e3a

-92
-92
.github/workflows/staging.yml
··· 1 - name: Deploy (Staging) 2 - 3 - on: 4 - push: 5 - branches: 6 - - staging 7 - workflow_dispatch: 8 - 9 - permissions: 10 - contents: write 11 - deployments: write 12 - 13 - concurrency: 14 - group: "cloudflare-pages-staging" 15 - cancel-in-progress: false 16 - 17 - jobs: 18 - build-and-deploy: 19 - runs-on: ubuntu-latest 20 - env: 21 - PNPM_HOME: /home/runner/.local/share/pnpm 22 - steps: 23 - - name: Checkout repository 24 - uses: actions/checkout@v4 25 - with: 26 - fetch-depth: 1 27 - 28 - - name: Setup Node.js & pnpm 29 - uses: actions/setup-node@v3 30 - with: 31 - node-version: "lts/*" 32 - 33 - - name: Install pnpm 34 - run: | 35 - corepack enable pnpm 36 - mkdir -p "$PNPM_HOME" 37 - echo "$PNPM_HOME" >> "$GITHUB_PATH" 38 - 39 - - name: Cache pnpm global packages 40 - uses: actions/cache@v4 41 - with: 42 - path: | 43 - ~/.local/share/pnpm/global 44 - ~/.local/share/pnpm/store 45 - key: pnpm-global-${{ hashFiles('.github/workflows/main.yml') }} 46 - restore-keys: pnpm-global- 47 - 48 - - name: Install dependencies 49 - run: pnpm add -g oxlint oxfmt esbuild html-minifier-terser wrangler@3 50 - 51 - - name: Lint, format & version stamp 52 - run: | 53 - pnpm run fix || true 54 - pnpm oxfmt --write . "**/*.{js,md,html,css,yml}" 55 - echo "${{ github.sha }}" > game/images/Zombies/CX/v.html 56 - 57 - - name: Commit changes 58 - run: | 59 - COMMIT_MSG=$(git log -1 --pretty=format:%s) 60 - AUTHOR_EMAIL=$(git log -1 --pretty=format:%ae) 61 - git config user.name github-actions 62 - git config user.email github-actions@github.com 63 - git add . 64 - git commit -m "Format \"$COMMIT_MSG\" 65 - Original commit: https://github.com/${{ github.repository }}/commit/${{ github.sha }} 66 - 67 - Co-authored-by: ${{ github.actor }} <$AUTHOR_EMAIL>" || exit 0 68 - git push 69 - 70 - - name: Bundle & minify all assets 71 - run: | 72 - esbuild game/js/CPlants.js \ 73 - --bundle --minify --sourcemap --sources-content=true \ 74 - --outfile=game/js/CPlants.js --allow-overwrite 75 - 76 - esbuild $(find . -type f \( -name "*.js" -o -name "*.css" \) \ 77 - -not -path "./node_modules/*" -not -name "CPlants.js") \ 78 - --minify --sourcemap --sources-content=true \ 79 - --outdir=. --allow-overwrite & 80 - 81 - find . -type f -name "*.html" -not -path "./node_modules/*" | \ 82 - xargs -P4 -I{} html-minifier-terser \ 83 - --collapse-whitespace --remove-comments --remove-tag-whitespace \ 84 - --minify-css true --minify-js true -o {} {} & 85 - 86 - wait 87 - 88 - - name: Deploy to Cloudflare Pages 89 - run: wrangler pages deploy . --project-name=pvz-staging --commit-dirty=true --branch=production 90 - env: 91 - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} 92 - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}