Skip to content

Commit

Permalink
chore(workflows): 适配独立 utils 仓库
Browse files Browse the repository at this point in the history
  • Loading branch information
MingcongBai committed Sep 22, 2024
1 parent 18c9dc6 commit 8883a87
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 8883a87

Please sign in to comment.