From 4a4740f8921bfc80548baf5b60964b860fc42e7e Mon Sep 17 00:00:00 2001 From: Austin Smith Date: Fri, 7 Aug 2026 01:09:34 -0700 Subject: [PATCH] update ci and release workflows --- .github/workflows/ci.yml | 4 ++-- .github/workflows/docker-publish.yml | 13 +++++-------- .github/workflows/release.yml | 17 ++++++----------- README.md | 2 +- package.json | 2 +- 5 files changed, 15 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f42ad4..4aaf4cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Setup pnpm uses: pnpm/action-setup@v6 @@ -26,7 +26,7 @@ jobs: run_install: false - name: Setup Node.js - uses: actions/setup-node@v6 + uses: actions/setup-node@v7 with: node-version: 24 cache: "pnpm" diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index e99a4b6..21deec0 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -18,14 +18,13 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Log in to Container Registry - if: github.event_name != 'pull_request' - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -33,18 +32,16 @@ jobs: - name: Extract metadata (tags, labels) id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} - type=ref,event=branch type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=sha,prefix= - name: Build and push Docker image - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: . platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 047faab..efb787d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Setup pnpm uses: pnpm/action-setup@v6 @@ -21,7 +21,7 @@ jobs: run_install: false - name: Setup Node.js - uses: actions/setup-node@v6 + uses: actions/setup-node@v7 with: node-version: 24 cache: "pnpm" @@ -34,16 +34,11 @@ jobs: - name: Prepare release bundle run: | - rm -rf release - mkdir -p release/public - cp -r .next/standalone .next/static release/ - cp .next/required-server-files.json release/ - cp public/compy.png public/github-mark.svg release/public/ + cp -r public .next/standalone/ + cp -r .next/static .next/standalone/.next/ - name: Create release archive - run: | - cd release - zip -r "../crapdash-${{ github.ref_name }}.zip" . + run: tar -czf "crapdash-${{ github.ref_name }}.tar.gz" -C .next/standalone . - name: Create GitHub Release env: @@ -52,4 +47,4 @@ jobs: gh release create ${{ github.ref_name }} \ --title "${{ github.ref_name }}" \ --generate-notes \ - crapdash-${{ github.ref_name }}.zip + crapdash-${{ github.ref_name }}.tar.gz diff --git a/README.md b/README.md index 868c869..dc9b930 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Download and run the latest prebuilt bundle if you want a quick Node deploy with ```bash cd /path/to/crapdash -PORT=2727 node .next/standalone/server.js +PORT=2727 node server.js ``` Consider using a process manager (e.g., pm2, systemd, launchd, NSSM) and a reverse proxy (nginx, Caddy, etc.). diff --git a/package.json b/package.json index e0b7fb4..fe02da4 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.4.1", "private": true, "license": "MIT", - "packageManager": "pnpm@11.0.3", + "packageManager": "pnpm@11.20.0", "engines": { "node": "24.x" },