diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 144243dee..5f8163695 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -158,6 +158,11 @@ jobs: name: ${{matrix.artifact-folder}} path: binary.tar + - name: Generate release notes from changelog (TEST!!!!!) + run: | + sed -e "/^## 1.54.0/,/^## / ! d" CHANGELOG.md | head -n -2 > RELEASE.md + cat RELEASE.md + package: needs: - build @@ -300,13 +305,18 @@ jobs: name: "Latest master" files: rescript-vscode-latest-master.vsix + - name: Generate release notes from changelog + if: startsWith(github.ref, 'refs/tags/') + run: | + sed -e "/^## ${{ steps.tag_name.outputs.tag }}/,/^## / ! d" CHANGELOG.md | head -n -2 > RELEASE.md + - name: Publish release version to GitHub if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false - generate_release_notes: true + body_path: RELEASE.md name: ${{ steps.tag_name.outputs.tag }} files: rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix