From 260e0dca6ca30ea0ad6768082183badb250e6d2f Mon Sep 17 00:00:00 2001 From: Bard Date: Sat, 14 Sep 2024 01:32:40 +0800 Subject: [PATCH] update ci --- .github/workflows/release-build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index d88d83f..d4a3eac 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -37,10 +37,8 @@ jobs: TAGS=$(curl -sk https://api.github.com/repos/sbwml/node-latest-centos/tags | grep "name") if [[ ${{ matrix.tag }} == "lts" ]]; then LATEST_VERSION=$(curl -s "https://api.github.com/repos/nodejs/node/releases" | grep 'Version.*LTS' | sed '/body/d' | head -1 | grep -oP "(?<=Version )\d+\.\d+\.\d+") - echo "PRE_RELEASE=false" >> "$GITHUB_ENV" else LATEST_VERSION=$(curl -s "https://api.github.com/repos/nodejs/node/releases" | grep 'Version.*Current'| sed '/body/d' | head -1 | grep -oP "(?<=Version )\d+\.\d+\.\d+") - echo "PRE_RELEASE=true" >> "$GITHUB_ENV" fi if [[ "$TAGS" == *"$LATEST_VERSION"* ]]; then echo -e " \n\e[1;32mnode-v$LATEST_VERSION is already the latest version.\e[0m\n" @@ -71,11 +69,10 @@ jobs: if: env.next == 'true' uses: ncipollo/release-action@v1.14.0 with: - name: node-v${{ env.VERSION }} + name: node-v${{ env.VERSION }}-${{ matrix.tag }} allowUpdates: true tag: v${{ env.VERSION }} commit: master replacesArtifacts: true - prerelease: ${{ env.PRE_RELEASE }} token: ${{ secrets.workflow_token }} artifacts: out/*