mirror of
https://github.com/ivabus/www
synced 2024-11-10 06:45:16 +03:00
generate packages.json data from api.tea.xyz/v1/packages
This commit is contained in:
parent
4590531fab
commit
8290da26f4
9
.github/workflows/cd.yml
vendored
9
.github/workflows/cd.yml
vendored
|
@ -24,13 +24,8 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Copy packages.json summary from dist.tea.xyz
|
- run: |
|
||||||
uses: prewk/s3-cp-action@v2
|
curl https://api.tea.xyz/v1/packages -H "Accept: application/json" >> ./src/data/packages.json
|
||||||
with:
|
|
||||||
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
source: 's3://dist.tea.xyz/mock_packages.json'
|
|
||||||
dest: './src/data/packages.json'
|
|
||||||
|
|
||||||
- name: Create Package Detail Pages from packages.json
|
- name: Create Package Detail Pages from packages.json
|
||||||
uses: getneil/jq-action@v1
|
uses: getneil/jq-action@v1
|
||||||
|
|
9
.github/workflows/staging.yml
vendored
9
.github/workflows/staging.yml
vendored
|
@ -35,13 +35,8 @@ jobs:
|
||||||
echo "relativeurls = true" >>config.toml
|
echo "relativeurls = true" >>config.toml
|
||||||
working-directory: src
|
working-directory: src
|
||||||
|
|
||||||
- name: Copy packages.json summary from dist.tea.xyz
|
- run: |
|
||||||
uses: prewk/s3-cp-action@v2
|
curl https://api.tea.xyz/v1/packages -H "Accept: application/json" >> ./src/data/packages.json
|
||||||
with:
|
|
||||||
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
source: 's3://dist.tea.xyz/mock_packages.json'
|
|
||||||
dest: './src/data/packages.json'
|
|
||||||
|
|
||||||
- name: Create Package Detail Pages from packages.json
|
- name: Create Package Detail Pages from packages.json
|
||||||
uses: getneil/jq-action@v1
|
uses: getneil/jq-action@v1
|
||||||
|
|
Loading…
Reference in a new issue