Skip to content

Commit 59309b9

Browse files
committed
also fetch and include spec in test tar
1 parent 9d9102b commit 59309b9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/test-tar.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ name: Package prism
66
env:
77
TAR_REPRO_OPTS: '"--mtime=2024-01-01 00:00 UTC" --sort=name --owner=0 --group=0 --numeric-owner'
88
TAR_NAME: ${{ github.event.repository.name }}-${{ github.ref_name }}-prism.tar.gz
9-
TAR_FILES: node_modules package.json package-lock.json
9+
TAR_FILES: node_modules package.json package-lock.json cloudflare-spec.yml
1010
CHECKOUT_DIR: ${{ github.event.repository.name }}-${{ github.ref_name }}
1111

1212
on:
1313
push:
1414
tags:
1515
- '*'
1616

17-
17+
1818

1919
jobs:
2020
vendor-tarball:
@@ -33,10 +33,13 @@ jobs:
3333
run: npm install $(grep -m1 prism-cli scripts/mock | awk '{print $3}' | sed s/--package=//)
3434
working-directory: ${{ env.CHECKOUT_DIR }}
3535

36+
- name: fetch cloudflare api spec
37+
run: wget $(yq -e '.openapi_spec_url' .stats.yml) -O cloudflare-spec.yml
38+
working-directory: ${{ env.CHECKOUT_DIR }}
39+
3640
- name: Create Archive
3741
run: tar ${{ env.TAR_REPRO_OPTS }} -caf ${{ env.TAR_NAME }} ${{ env.TAR_FILES }}
3842
working-directory: ${{ env.CHECKOUT_DIR }}
39-
4043
- name: release
4144
uses: softprops/action-gh-release@v2
4245
with:

0 commit comments

Comments
 (0)