From 8883a8749fdd34c0c8c20cd7a95da58a864a2885 Mon Sep 17 00:00:00 2001 From: Mingcong Bai Date: Sat, 21 Sep 2024 19:59:24 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflows):=20=E9=80=82=E9=85=8D=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=20utils=20=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 46cd6bc1..62237908 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -23,11 +23,6 @@ jobs: key: ${{ runner.OS }}-npm-cache restore-keys: | ${{ runner.OS }}-npm-cache - - name: MakeCategory - run: | - pushd ./public - aosc-portal-make-news-index - popd - name: Setup SSH Private Key env: KEY: ${{ secrets.KEY }} @@ -49,6 +44,18 @@ jobs: # Build website npm i npm run build + + # Build utilities + git submodule update --init + pushd utils/make-news-index + go build -o make-news-index + popd + + # Build news index + pushd public + ../utils/make-news-index/make-news-index + popd + zip -r website.zip website/ scp website.zip aosc@$IP:/home/aosc/web/ - name: Unzip website