Skip to content

Commit

Permalink
chore: Write changelog to file in release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Hornhead <[email protected]>
  • Loading branch information
marchingon12 committed May 12, 2024
1 parent 4fcef4c commit 6219af7
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions .github/workflows/release-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ 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
Expand All @@ -87,33 +90,33 @@ jobs:
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 }} &#x20;
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 }} &#x20;
# 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

0 comments on commit 6219af7

Please sign in to comment.