diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 06a33a3..4ce4c1d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -24,13 +24,10 @@ jobs: - uses: actions/checkout@v3 - - 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/mock_packages.json' - dest: './src/data/packages.json' + - name: add packages data + run: | + rm ./src/data/packages.json + curl https://api.tea.xyz/v1/packages -H "Accept: application/json" >> ./src/data/packages.json - name: Create Package Detail Pages from packages.json uses: getneil/jq-action@v1 diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 6f2254d..a73d345 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -35,13 +35,10 @@ jobs: echo "relativeurls = true" >>config.toml working-directory: src - - 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/mock_packages.json' - dest: './src/data/packages.json' + - name: add packages data + run: | + rm ./src/data/packages.json + curl https://api.tea.xyz/v1/packages -H "Accept: application/json" >> ./src/data/packages.json - name: Create Package Detail Pages from packages.json uses: getneil/jq-action@v1