Skip to content

Commit

Permalink
fix(ci): use combined schema when publishing Java types.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcornish committed Apr 25, 2024
1 parent cea2c09 commit 648aa7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ jobs:
path: v1/json-schemas
retention-days: 1

- name: Upload combined schema
uses: actions/upload-artifact@v3
with:
name: combined-schema
path: code-generators/java-types/schemas
retention-days: 1

- name: Upload TypeScript types
uses: actions/upload-artifact@v3
with:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ jobs:
run: |
echo "release_version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Generate Java types
working-directory: scripts
run: ./generate_java_types.sh
- name: Download combined schema
uses: actions/download-artifact@v3
with:
name: combined-schema
path: code-generators/java-types/schemas

- name: Publish Maven artifact
working-directory: code-generators/java-types
Expand Down

0 comments on commit 648aa7a

Please sign in to comment.