From 72eb6c54f3fc2f7547ac95d6baa7324cdd0e5c29 Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Fri, 4 Oct 2024 17:05:19 +0100 Subject: [PATCH] Use release action to automate release creation --- .github/workflows/release.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7d416b85..2a41add4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,3 +56,26 @@ jobs: - name: Create deploy bundle run: templates/generate-all deploy.zip v${{ steps.version.outputs.VERSION }} + # - 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 + # with: + # tag_name: ${{ github.ref }} + # release_name: Release ${{ github.ref }} + # body: | + # Changes in this Release + # - First Change + # - Second Change + # draft: true + # prerelease: true + + - uses: ncipollo/release-action@v1 + with: + artifacts: deploy.zip + generateReleaseNotes: true + makeLatest: false + prerelease: true + skipIfReleaseExists: true + tag: v${{ steps.version.outputs.VERSION }}