Skip to content

Commit 5b2d887

Browse files
author
hjh
committed
添加下载前端资源的功能
1 parent cf0d4b7 commit 5b2d887

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release_docker.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,18 @@ jobs:
5656
apt-get install -y jq sudo
5757
5858
59+
- name: Download Frontend
60+
run: bash build.sh release web
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
63+
FRONTEND_REPO: ${{ vars.FRONTEND_REPO }}
64+
5965
- name: Build go binary (release)
6066
run: |
6167
sudo apt-get update && sudo apt-get install -y musl-tools
6268
mkdir -p build/linux/amd64
6369
export CGO_ENABLED=1
70+
export CC=musl-gcc
6471
go build -o build/linux/amd64/openlist -ldflags="-w -s -linkmode external -extldflags '-static -fpic'" -tags=jsoniter .
6572
env:
6673
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
@@ -72,6 +79,7 @@ jobs:
7279
name: ${{ env.ARTIFACT_NAME }}
7380
path: |
7481
build/
82+
public/
7583
!build/*.tgz
7684
!build/musl-libs/**
7785
@@ -108,7 +116,7 @@ jobs:
108116
- uses: actions/download-artifact@v3
109117
with:
110118
name: ${{ env.ARTIFACT_NAME }}
111-
path: 'build/'
119+
path: .
112120

113121
- name: Install Docker
114122
run: curl -fsSL https://get.docker.com | sh

0 commit comments

Comments
 (0)