File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 9090 go-version : " 1.25.0"
9191
9292 - name : Setup web
93- run : bash build.sh dev web
93+ run : |
94+ frontendRepo="${FRONTEND_REPO:-OpenListTeam/OpenList-Frontend}"
95+ release_json=$(curl -fsSL --max-time 10 \
96+ -H "Authorization: Bearer $GITHUB_TOKEN" \
97+ -H "Accept: application/vnd.github.v3+json" \
98+ "https://api.github.com/repos/$frontendRepo/releases/tags/beta-media")
99+ tar_url=$(echo "$release_json" | jq -r '.assets[].browser_download_url' | grep "openlist-frontend-dist" | grep -v "lite" | grep "\.tar\.gz$")
100+ echo "Downloading frontend from: $tar_url"
101+ curl -fsSL "$tar_url" -o dist.tar.gz
102+ rm -rf public/dist && mkdir -p public/dist
103+ tar -zxvf dist.tar.gz -C public/dist
104+ rm -rf dist.tar.gz
94105 env :
95106 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96107 FRONTEND_REPO : ${{ vars.FRONTEND_REPO }}
You can’t perform that action at this time.
0 commit comments