diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 48ee337..4ce4c1d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -24,7 +24,9 @@ jobs: - uses: actions/checkout@v3 - - run: | + - 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 diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index a9ffd99..a73d345 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -35,7 +35,9 @@ jobs: echo "relativeurls = true" >>config.toml working-directory: src - - run: | + - 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