Skip to content

Commit

Permalink
ci: update node16 to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Markson Hon committed Feb 22, 2024
1 parent f01b23e commit eecefeb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
echo "Use tar to generate web.tar.gz..."
tar -zcvf web.tar.gz web/
- name: Upload Zip File to Artifacts
uses: actions/upload-artifact@v3
uses: actions/download-artifact@v4.3.1
with:
path: web/*
name: web
Expand All @@ -43,12 +43,12 @@ jobs:
with:
fetch-depth: 0
- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: web
path: service/server/router/web
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5.0.0
with:
go-version: ^1.21
- name: Build v2rayA
Expand All @@ -66,7 +66,7 @@ jobs:
GOARCH="$arch" CGO_ENABLED=0 go build -tags "with_gvisor" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya_bin/v2raya_pr_build_"$os"_"$arch"_"$version"
done
- name: Upload Zip File to Artifacts
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: v2raya_bin/*

Expand All @@ -78,12 +78,12 @@ jobs:
with:
fetch-depth: 0
- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: web
path: service/server/router/web
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5.0.0
with:
go-version: ^1.21
- name: Build v2rayA
Expand All @@ -101,7 +101,7 @@ jobs:
GOARCH="$arch" CGO_ENABLED=0 go build -tags "with_gvisor" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya_bin/v2raya_pr_build_"$os"_"$arch"_"$version".exe
done
- name: Upload Zip File to Artifacts
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: v2raya_bin/*

Expand All @@ -113,12 +113,12 @@ jobs:
with:
fetch-depth: 0
- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: web
path: service/server/router/web
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5.0.0
with:
go-version: ^1.21
- name: Build v2rayA
Expand All @@ -136,6 +136,6 @@ jobs:
GOARCH="$arch" CGO_ENABLED=0 go build -tags "with_gvisor" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya_bin/v2raya_pr_build_"$os"_"$arch"_"$version"
done
- name: Upload Zip File to Artifacts
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: v2raya_bin/*
36 changes: 18 additions & 18 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
echo "Use tar to generate web.tar.gz..."
tar -zcvf web.tar.gz web/
- name: Upload Zip File to Artifacts
uses: actions/upload-artifact@v3
uses: actions/download-artifact@v4.3.1
with:
path: web/*
name: web
- name: Upload the tar archive to Artifacts
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: |
web.tar.gz
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
with:
fetch-depth: 0
- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: web
path: service/server/router/web
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5.0.0
with:
go-version: ^1.21
- name: Install Dependencies
Expand All @@ -154,7 +154,7 @@ jobs:
cd ..
mv build_"$GOOS"_"$GOARCH""$GOARM"_"$VERSION""$WIN_SUF" v2raya_"${{ steps.get_filename.outputs.BUILD_NAME }}"_"$VERSION""$WIN_SUF"
- name: Upload Artifact
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: |
v2raya_${{ steps.get_filename.outputs.BUILD_NAME }}_${{ steps.prep.outputs.VERSION }}${{ matrix.win_suf }}
Expand Down Expand Up @@ -184,12 +184,12 @@ jobs:
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
- name: Download Artifact Windows x64
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: v2raya_windows_x64_${{ steps.prep.outputs.VERSION }}.exe
path: D:\Downloads
- name: Download Artifact Windows arm64
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: v2raya_windows_arm64_${{ steps.prep.outputs.VERSION }}.exe
path: D:\Downloads
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
Copy-Item -Path D:\installer_windows_inno_x64.exe -Destination .\installer_windows_inno_x64_${{ steps.prep.outputs.VERSION }}.exe
Copy-Item -Path D:\installer_windows_inno_arm64.exe -Destination .\installer_windows_inno_arm64_${{ steps.prep.outputs.VERSION }}.exe
- name: Upload Artifact
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: |
installer_windows_inno_x64_${{ steps.prep.outputs.VERSION }}.exe
Expand Down Expand Up @@ -300,12 +300,12 @@ jobs:
echo "PACKAGE_VERSION=$package_version" >> $GITHUB_OUTPUT
echo "PACKAGE_VERSION=$package_version" >> $GITHUB_ENV
- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: v2raya_${{ steps.get_filename.outputs.BUILD_NAME }}_${{ steps.prep.outputs.VERSION }}
path: build/
- name: Download x64 Linux Build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: v2raya_linux_x64_${{ steps.prep.outputs.VERSION }}
path: test/
Expand Down Expand Up @@ -376,7 +376,7 @@ jobs:
mv installer_linux_$GOARCH$GOAMD64$GOARM_${{ steps.prep.outputs.VERSION }}.deb \
fpm_packages/installer_debian_${{ steps.get_filename.outputs.FRIENDLY_ARCH }}_${{ steps.prep.outputs.VERSION }}.deb
- name: Upload Artifact
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: |
fpm_packages/*
Expand All @@ -400,7 +400,7 @@ jobs:
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
path: builds/
- name: Move Files to Release Directory
Expand Down Expand Up @@ -588,7 +588,7 @@ jobs:
echo "XRAY_VERSION=$XRAY_VERSION" >> ./xray_packages_version.txt
- name: Upload Artifact
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: |
v2ray_packages/*
Expand All @@ -612,7 +612,7 @@ jobs:
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
path: builds/
- name: Prepare Builds
Expand Down Expand Up @@ -693,17 +693,17 @@ jobs:
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
- name: Download Artifact Linux x64
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: v2raya_linux_x64_${{ steps.prep.outputs.VERSION }}
path: Downloads
- name: Download Artifact macOS x64
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: v2raya_darwin_x64_${{ steps.prep.outputs.VERSION }}
path: Downloads
- name: Download Artifact macOS arm64
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: v2raya_darwin_arm64_${{ steps.prep.outputs.VERSION }}
path: Downloads
Expand Down Expand Up @@ -790,7 +790,7 @@ jobs:
IMAGE="mzz2017/v2raya-gui"
echo image=${IMAGE} >> $GITHUB_OUTPUT
- name: Download Web Files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: web
path: web
Expand Down

0 comments on commit eecefeb

Please sign in to comment.