From d7cc10fa006765330ab2c06fd7998cd766394f21 Mon Sep 17 00:00:00 2001 From: Dedy Martadinata S Date: Thu, 5 Jan 2023 21:36:01 +0700 Subject: [PATCH] ci: fetch missing web components --- .github/workflows/docker-build-static.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-static.yml b/.github/workflows/docker-build-static.yml index 56d417c..fa92ff3 100644 --- a/.github/workflows/docker-build-static.yml +++ b/.github/workflows/docker-build-static.yml @@ -465,6 +465,13 @@ jobs: path: web - name: Web Cleanup run: mkdir app && mv web/index.html app/index.html && mv web/static app/static && mv web/pkg app/pkg + - name: Fetch web components + run: | + sudo apt update + sudo apt install wget + for file in $(cat app/static/libraries.txt); do wget -P app/static "$file"; done + for file in $(cat app/static/fonts/fonts.txt); do wget -P app/static/fonts "$file"; done + chmod a+r -R . - name: compress web run: sudo apt update && sudo apt install -y zip && zip -r web.zip app/ @@ -474,12 +481,12 @@ jobs: id: create_release with: allowUpdates: true - artifacts: "bin/armhf-bin/lldap-armhf, + artifacts: bin/armhf-bin/lldap-armhf, bin/aarch64-bin/lldap-aarch64, bin/amd64-bin/lldap-amd64, bin/armhf-bin/migration-tool-armhf, bin/aarch64-bin/migration-tool-aarch64, bin/amd64-bin/migration-tool-amd64, - web.zip" + web.zip env: GITHUB_TOKEN: ${{ github.token }}