Puppeteer libraries did not bundle
This commit is contained in:
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@@ -25,6 +25,17 @@ jobs:
|
|||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
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
|
- name: Build binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir -p out
|
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=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 .
|
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
|
- name: Create source tarball
|
||||||
run: |
|
run: |
|
||||||
mkdir -p release
|
mkdir -p release
|
||||||
tar -czf release/${BINARY_NAME}_${GITHUB_REF_NAME}_source.tar.gz .
|
tar -czf release/${BINARY_NAME}_${GITHUB_REF_NAME}_source.tar.gz .
|
||||||
|
|
||||||
|
# -------------------------------------------------
|
||||||
|
# Install GitHub CLI
|
||||||
|
# -------------------------------------------------
|
||||||
- name: Install GitHub CLI
|
- name: Install GitHub CLI
|
||||||
run: sudo apt-get install -y gh
|
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:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
TAG="${GITHUB_REF_NAME}"
|
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
|
gh release delete "$TAG" --yes --cleanup-tag || true
|
||||||
|
|
||||||
# Create a clean release
|
# Create release and upload all assets
|
||||||
gh release create "$TAG" \
|
gh release create "$TAG" \
|
||||||
out/${BINARY_NAME}_linux_amd64 \
|
out/${BINARY_NAME}_linux_amd64 \
|
||||||
out/${BINARY_NAME}_linux_arm64 \
|
out/${BINARY_NAME}_linux_arm64 \
|
||||||
|
|||||||
Reference in New Issue
Block a user