mirror of
https://github.com/ivabus/www
synced 2024-11-23 00:15:05 +03:00
prebuild action: copy packages.json summary from dist.tea.xyz bucket
This commit is contained in:
parent
044c0a5fe7
commit
ee692479ed
2 changed files with 14 additions and 4 deletions
9
.github/workflows/cd.yml
vendored
9
.github/workflows/cd.yml
vendored
|
@ -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
|
||||
|
|
9
.github/workflows/staging.yml
vendored
9
.github/workflows/staging.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue