From 7c09e5cb3053bd5a02765a116f4374d3139476fe Mon Sep 17 00:00:00 2001 From: agustin-littlehat Date: Mon, 15 Jun 2026 13:15:31 -0300 Subject: [PATCH 1/2] Add production deploy workflow --- .github/workflows/deploy.yml | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..36af1b3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,58 @@ +name: Deploy + +on: + pull_request: + branches: + - main + push: + branches: + - main + workflow_dispatch: + +concurrency: + group: production-deploy + cancel-in-progress: true + +jobs: + build: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest + timeout-minutes: 60 + env: + HOSTING_AUTH_TOKEN: ${{ secrets.HOSTING_AUTH_TOKEN }} + HOSTING_SITE_ID: ${{ secrets.HOSTING_SITE_ID }} + QUAKE_RENDER_BUNDLE_AVIF_EFFORT: "0" + QUAKE_SHAREWARE_URL: ${{ secrets.QUAKE_SHAREWARE_URL }} + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 10.33.0 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - name: Check build inputs + run: | + test -n "$QUAKE_SHAREWARE_URL" + if [ "$GITHUB_EVENT_NAME" = "push" ]; then + test -n "$HOSTING_AUTH_TOKEN" + test -n "$HOSTING_SITE_ID" + fi + + - run: pnpm install --frozen-lockfile + + - run: pnpm build:full + + - name: Publish prebuilt site + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: | + pnpm --package=netlify-cli@latest dlx netlify deploy \ + --prod \ + --dir=dist \ + --no-build \ + --auth "$HOSTING_AUTH_TOKEN" \ + --site "$HOSTING_SITE_ID" From 67d499741b0200ac05fdb9cf9a3823209e2a61e7 Mon Sep 17 00:00:00 2001 From: agustin-littlehat Date: Mon, 15 Jun 2026 18:00:33 -0300 Subject: [PATCH 2/2] Make production deploy manual --- .github/workflows/deploy.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 36af1b3..d9cb53b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,12 +1,6 @@ name: Deploy on: - pull_request: - branches: - - main - push: - branches: - - main workflow_dispatch: concurrency: @@ -15,7 +9,6 @@ concurrency: jobs: build: - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest timeout-minutes: 60 env: @@ -38,17 +31,14 @@ jobs: - name: Check build inputs run: | test -n "$QUAKE_SHAREWARE_URL" - if [ "$GITHUB_EVENT_NAME" = "push" ]; then - test -n "$HOSTING_AUTH_TOKEN" - test -n "$HOSTING_SITE_ID" - fi + test -n "$HOSTING_AUTH_TOKEN" + test -n "$HOSTING_SITE_ID" - run: pnpm install --frozen-lockfile - run: pnpm build:full - name: Publish prebuilt site - if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | pnpm --package=netlify-cli@latest dlx netlify deploy \ --prod \