From b97adcb250dc3080f80f1da2184fedfb0b3b0b60 Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Fri, 4 Nov 2022 22:31:14 +0800 Subject: [PATCH] optimize: for github runner 2.298.2 --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80ec73d..54a2357 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,9 +36,9 @@ jobs: uses: actions/checkout@v2 - name: Set up nodejs - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '18.x' + node-version: 18.x cache: 'yarn' cache-dependency-path: 'frontend/yarn.lock' @@ -108,7 +108,7 @@ jobs: - name: Get the version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT - name: Set up Go uses: actions/setup-go@v2 @@ -116,7 +116,7 @@ jobs: go-version: ^1.19.0 - name: Set up cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/.cache/go-build @@ -163,7 +163,7 @@ jobs: echo "LD_FLAGS=-s -w" >> $GITHUB_ENV - name: Download frontend artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: frontend-dist path: frontend/dist @@ -174,7 +174,7 @@ jobs: go build -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go - name: Archive backend artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: ${{ env.DIST }} path: dist/nginx-ui