From 4e59dfad5466ce4aaa350db9c2e5de8764b04a2e Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Thu, 29 May 2025 11:16:56 +0200 Subject: [PATCH] Refactor release workflow: uncomment and configure push changes, build changelog, and create release steps --- .gitea/workflows/relase.yml | 56 ++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.gitea/workflows/relase.yml b/.gitea/workflows/relase.yml index a70ad18..f2ff31d 100644 --- a/.gitea/workflows/relase.yml +++ b/.gitea/workflows/relase.yml @@ -55,34 +55,34 @@ jobs: run: | echo ${{ env.VERSION }} cat pyproject.toml - # - name: Push changes - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: ${{ github.ref }} + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} - # - name: Build Changelog - # id: build_changelog - # uses: https://github.com/mikepenz/release-changelog-builder-action@v5 - # with: - # mode: "COMMIT" - # platform: "gitea" - # baseURL: "http://gitea:3000" - # configuration: ".gitea/changelog-config.json" - # env: - # GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} + - name: Build Changelog + id: build_changelog + uses: https://github.com/mikepenz/release-changelog-builder-action@v5 + with: + mode: "COMMIT" + platform: "gitea" + baseURL: "http://gitea:3000" + configuration: ".gitea/changelog-config.json" + env: + GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} - # - name: Create release - # id: create_release - # if: ${{ github.event.inputs.github_release == 'true' }} - # uses: softprops/action-gh-release@master - # with: - # tag_name: ${{ env.VERSION }} - # release_name: Release ${{ env.VERSION }} - # body: ${{steps.build_changelog.outputs.changelog}} - # draft: false - # prerelease: false - # make_latest: true - # env: - # GITHUB_TOKEN: ${{ secrets.TOKEN }} + - name: Create release + id: create_release + if: ${{ github.event.inputs.github_release == 'true' }} + uses: softprops/action-gh-release@master + with: + tag_name: ${{ env.VERSION }} + release_name: Release ${{ env.VERSION }} + body: ${{steps.build_changelog.outputs.changelog}} + draft: false + prerelease: false + make_latest: true + env: + GITHUB_TOKEN: ${{ secrets.TOKEN }}