From eacb9d0c3671f489cb363e61fafb14d0e16227dc Mon Sep 17 00:00:00 2001 From: mohamad-oddhill Date: Thu, 29 Aug 2024 00:27:49 +0200 Subject: [PATCH] Test release notes --- .github/workflows/release.yml | 39 ++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15051b351c..b049f9d3a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,26 +5,31 @@ name: Release on: push: branches: - - release + - master jobs: release: - name: Create Release runs-on: ubuntu-latest + needs: staging + permissions: + contents: write + outputs: + release-tag: ${{ steps.autotag.outputs.new-tag }} + release-url: ${{ steps.release.outputs.html_url }} steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + - name: Increment version tag + id: autotag + uses: phish108/autotag-action@v1.1.64 with: - tag_name: ${{ github.ref_name }} - release_name: Release ${{ github.ref_name }} - body: | - Changes in this Release - - First Change - - Second Change - draft: false - prerelease: false \ No newline at end of file + github-token: ${{ secrets.GITHUB_TOKEN }} + with-v: true + + - name: Create pre-release + id: release + uses: ncipollo/release-action@v1.14.0 + with: + generateReleaseNotes: true + makeLatest: false + prerelease: true + skipIfReleaseExists: true + tag: v${{ steps.autotag.outputs.new-tag }} \ No newline at end of file