From 5386ca5db52ccc77f0eebc2866a3298c25449f04 Mon Sep 17 00:00:00 2001 From: Salastil Date: Sun, 23 Nov 2025 04:21:21 -0500 Subject: [PATCH] Puppeteer libraries did not bundle --- .github/workflows/release.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c3e77d8..cf69c6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,17 @@ jobs: go-version-file: go.mod cache: true + # ------------------------------------------------- + # Build node_modules bundle for puppeteer-extra + # ------------------------------------------------- + - name: Build node_modules archive + run: | + chmod +x scripts/build_node_modules.sh + ./scripts/build_node_modules.sh + + # ------------------------------------------------- + # Compile all platform binaries + # ------------------------------------------------- - name: Build binaries run: | mkdir -p out @@ -33,24 +44,33 @@ jobs: GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o out/${BINARY_NAME}_darwin_amd64 . GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o out/${BINARY_NAME}_darwin_arm64 . + # ------------------------------------------------- + # Create source code bundle for this version + # ------------------------------------------------- - name: Create source tarball run: | mkdir -p release tar -czf release/${BINARY_NAME}_${GITHUB_REF_NAME}_source.tar.gz . + # ------------------------------------------------- + # Install GitHub CLI + # ------------------------------------------------- - name: Install GitHub CLI run: sudo apt-get install -y gh - - name: Create Release + Upload Assets + # ------------------------------------------------- + # Create Release + upload binaries and source + # ------------------------------------------------- + - name: Create Release and Upload Assets env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | TAG="${GITHUB_REF_NAME}" - # Delete any previous release with the same tag (prevents untagged-XXXX) + # Remove old release if re-tagged gh release delete "$TAG" --yes --cleanup-tag || true - # Create a clean release + # Create release and upload all assets gh release create "$TAG" \ out/${BINARY_NAME}_linux_amd64 \ out/${BINARY_NAME}_linux_arm64 \