prebuild action: copy packages.json summary from dist.tea.xyz bucket

This commit is contained in:
neil 2022-10-14 21:51:00 +08:00
parent 044c0a5fe7
commit ee692479ed
2 changed files with 14 additions and 4 deletions

View file

@ -25,8 +25,13 @@ jobs:
- uses: actions/checkout@v3
# TODO:
# add action here to download updates packages.json into src/data/packages.json
- name: Copy packages.json summary from dist.tea.xyz
uses: prewk/s3-cp-action@v2
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
source: 's3://dist.tea.xyz'
dest: './src/data/packages.json'
- name: Create Package Detail Pages from packages.json
uses: getneil/jq-action@v1

View file

@ -33,8 +33,13 @@ jobs:
echo "relativeurls = true" >>config.toml
working-directory: src
# TODO:
# add action here to download updates packages.json into src/data/packages.json
- name: Copy packages.json summary from dist.tea.xyz
uses: prewk/s3-cp-action@v2
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
source: 's3://dist.tea.xyz'
dest: './src/data/packages.json'
- name: Create Package Detail Pages from packages.json
uses: getneil/jq-action@v1