diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5652589..8f7613d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 0b1b8f3..329102d 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -10,7 +10,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Mirror + trigger CI diff --git a/.github/workflows/npmp.yml b/.github/workflows/npmp.yml index f50ec67..dbaf625 100644 --- a/.github/workflows/npmp.yml +++ b/.github/workflows/npmp.yml @@ -12,7 +12,7 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index 0a4be6a..407301d 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -30,16 +30,16 @@ jobs: # nodev: 12 steps: - name: "Checkout codes" - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: "Use Node.js" - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "*" - name: "Pkg this" run: | npm run pkg "node${{ matrix.nodev }}-${{ matrix.platform }}-x64" - name: "Upload to artifact" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: node${{ matrix.nodev }}-${{ matrix.platform }}-x64 path: "dist/*.zip" @@ -62,14 +62,14 @@ jobs: - platform: alpine steps: - name: "Checkout codes" - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: "Pkg this" run: | - npm run pkg "${{ matrix.platform }}-arm64" + npm run pkg "node18-${{ matrix.platform }}-arm64" - name: "Upload to artifact" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: arm64 + name: node18-${{ matrix.platform }}-arm64 path: "dist/*.zip" - name: "Upload to release draft" uses: xresloader/upload-to-github-release@v1 diff --git a/script/build/pkg.sh b/script/build/pkg.sh index 6a9da41..dbf6f02 100755 --- a/script/build/pkg.sh +++ b/script/build/pkg.sh @@ -28,12 +28,12 @@ mkdir -p $TARGET_DIR npm install if [[ "$1" == *"arm"* ]]; then - OUTFILE="$TARGET_DIR/lottery-auto-script-node18-$1" + OUTFILE="$TARGET_DIR/lottery-auto-script-$1" sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes podman run -it \ --rm \ -v ${PWD}:/root/lottery \ - shanmite/pkg-arm64 -t "node18.5.0-$1" -o "$OUTFILE" . + shanmite/pkg-arm64 -t "node18-$1" -o "$OUTFILE" . elif [[ "$1" == *"x64"* ]]; then OUTFILE="$TARGET_DIR/lottery-auto-script-$1" npx pkg -t "$1" -o "$OUTFILE" .