diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63c5c27bf..b773778d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -131,15 +131,23 @@ jobs: needs: [test, build_docker] runs-on: ubuntu-22.04 steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Trim CHANGELOG.md + run: sed -e '0,/^##[^#]/d' -e '/^##[^#]/,$d' -i CHANGELOG.md + - name: Download GraphQL schema uses: actions/download-artifact@v3 if: ${{ startsWith(github.ref, 'refs/tags/v') }} with: name: graphql-schema - - name: Upload GraphQL schema to GitHub Release + - name: Publish Github release uses: softprops/action-gh-release@v1 if: ${{ startsWith(github.ref, 'refs/tags/v') }} with: draft: true + body_path: CHANGELOG.md files: schema.graphql