Skip to content

Commit

Permalink
feat: add changelog to the Github release
Browse files Browse the repository at this point in the history
  • Loading branch information
gligneul committed Sep 19, 2023
1 parent fa3f4df commit fb94064
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fb94064

Please sign in to comment.