From 25697efaf170866ba5a91c089ca744b84bff62da Mon Sep 17 00:00:00 2001 From: Austin Hornhead Date: Sun, 12 May 2024 14:57:45 +0000 Subject: [PATCH] chore: Update release workflow to write changelog to file Signed-off-by: Austin Hornhead --- .github/workflows/release-new.yml | 60 ++++++++++++++++--------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/.github/workflows/release-new.yml b/.github/workflows/release-new.yml index 30a4e03..7b84600 100644 --- a/.github/workflows/release-new.yml +++ b/.github/workflows/release-new.yml @@ -79,41 +79,43 @@ jobs: with: mention-authors: false semver: false + + - name: Write changelog to file + run: echo "${{ steps.changelog.outputs.changelog }}" > CHANGELOG.md - name: Commit CHANGELOG.md uses: stefanzweifel/git-auto-commit-action@v5 with: - branch: main commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]' file_pattern: CHANGELOG.md - - name: Create Release - id: create_release - uses: actions/create-release@v1 - with: - tag_name: ${{ github.ref }} - release_name: GreenStash ${{ github.ref }} - draft: true - body: ${{ steps.changelog.outputs.changelog }} - env: - GITHUB_TOKEN: ${{ github.token }} + # - name: Create Release + # id: create_release + # uses: actions/create-release@v1 + # with: + # tag_name: ${{ github.ref }} + # release_name: GreenStash ${{ github.ref }} + # draft: true + # body: ${{ steps.changelog.outputs.changelog }} + # env: + # GITHUB_TOKEN: ${{ github.token }} - - name: Upload APK - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ github.token }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{steps.sign_apk.outputs.signedReleaseFile}} - asset_name: GreenStash-${{ steps.var.outputs.tag }}.apk - asset_content_type: application/zip + # - name: Upload APK + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ github.token }} + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: ${{steps.sign_apk.outputs.signedReleaseFile}} + # asset_name: GreenStash-${{ steps.var.outputs.tag }}.apk + # asset_content_type: application/zip - - name: Upload AAB - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ github.token }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{steps.sign_aab.outputs.signedReleaseFile}} - asset_name: GreenStash-${{ steps.var.outputs.tag }}.aab - asset_content_type: application/zip + # - name: Upload AAB + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ github.token }} + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: ${{steps.sign_aab.outputs.signedReleaseFile}} + # asset_name: GreenStash-${{ steps.var.outputs.tag }}.aab + # asset_content_type: application/zip