Skip to content

Saleor Core: the high performance, composable, headless commerce API.

ci: attach schema.graphql to GitHub releases (#19516)

Lukasz Ostrowski871173f898d5
diff --git a/.github/workflows/create-tag-with-release-pr.yml b/.github/workflows/create-tag-with-release-pr.yml
index bb42f95918..2c698971d0 100644
--- a/.github/workflows/create-tag-with-release-pr.yml
+++ b/.github/workflows/create-tag-with-release-pr.yml
@@ -64,12 +64,18 @@ jobs:
ref: `refs/tags/${process.env.VERSION}`,
sha: context.sha
})
+ - name: Checkout tagged commit
+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+ with:
+ ref: ${{ github.sha }}
+ sparse-checkout: |
+ saleor/graphql/schema.graphql
- name: Create github release
env:
VERSION: ${{ steps.set-version.outputs.VERSION }}
IS_LATEST: ${{ steps.check-latest.outputs.IS_LATEST }}
run: |
- gh release create -d "$VERSION" --repo="$GITHUB_REPOSITORY" --latest="$IS_LATEST" --generate-notes --verify-tag
+ gh release create -d "$VERSION" --repo="$GITHUB_REPOSITORY" --latest="$IS_LATEST" --generate-notes --verify-tag saleor/graphql/schema.graphql
publish:
needs: [create-release-tag]