mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
optimize: for github runner 2.298.2
This commit is contained in:
parent
3d0c40eaac
commit
b97adcb250
1 changed files with 6 additions and 6 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue