diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 468abcd57..4d953c17a 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -416,6 +416,7 @@ jobs: needs: [wait-builds, doc-pdf] permissions: contents: write + discussions: write uses: ./.github/workflows/push-github.yml with: VERSION: ${{ needs.wait-builds.outputs.version }} diff --git a/.github/workflows/push-github.yml b/.github/workflows/push-github.yml index 3b2692c44..ba12613df 100644 --- a/.github/workflows/push-github.yml +++ b/.github/workflows/push-github.yml @@ -28,10 +28,16 @@ jobs: with: tag: "v${{ inputs.VERSION }}" message: "v${{ inputs.VERSION }}" + force_push_tag: true # Extract changelog - name: Extract changelog id: getchangelog - run: echo "::set-output name=content::$(awk -v n=2 '/##/{n--}; n > 0' CHANGELOG.md | grep -v '# Changelog' | grep -v '##' | sed '/^$/d')" + run: | + content=$(awk -v n=2 '/##/{n--}; n > 0' CHANGELOG.md | grep -v '# Changelog' | grep -v '##' | sed '/^$/d') + content="${content//'%'/'%25'}" + content="${content//$'\n'/'%0A'}" + content="${content//$'\r'/'%0D'}" + echo "::set-output name=content::$content" # Create release - name: Create release uses: softprops/action-gh-release@v1 @@ -48,10 +54,11 @@ jobs: Linux packages : https://packagecloud.io/app/bunkerity/bunkerweb/search?q=${{ inputs.VERSION }}&filter=all&dist= Changelog : - ${{steps.getchangelog.outputs.content}} + ${{ steps.getchangelog.outputs.content }} draft: true prerelease: ${{ inputs.PRERELEASE }} name: v${{ inputs.VERSION }} tag_name: v${{ inputs.VERSION }} discussion_category_name: Announcements + files: BunkerWeb_documentation_v${{ inputs.VERSION }}.pdf