Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improve internal and beta release workflow #1088

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/internal_or_beta_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
tag-name: ${{ steps.rel_number.outputs.version }}
gh-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build Changelog
- name: 🍀 Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v5
env:
Expand Down Expand Up @@ -127,23 +127,21 @@ jobs:
tag_name: ${{ steps.rel_number.outputs.version }}
draft: false
prerelease: true
append_body: true
generate_release_notes: true
body: ${{ steps.build_changelog.outputs.changelog }}
files: |
./app/build/outputs/apk/demo/release/app-demo-release.apk
./app/build/outputs/apk/prod/release/app-prod-release.apk
./app/build/outputs/version_code.txt

- name: Update Changelog
- name: 🍏 Update Changelog
id: update_changelog
if: steps.create_release.outcome == 'success'
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ steps.rel_number.outputs.version }}
release-notes: ${{ steps.build_changelog.outputs.changelog }}

- name: Commit CHANGELOG.md
- name: 🤖 Commit CHANGELOG.md
if: steps.update_changelog.outcome == 'success'
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand All @@ -163,6 +161,18 @@ jobs:
🍏 version: ${{ steps.rel_number.outputs.version }}
🤖 build: ${{ steps.rel_number.outputs.version-code }}

- name: 🤖 Create Sentry release
if: github.event.inputs.release_type == 'beta'
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_RELEASE_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
version: ${{ steps.rel_number.outputs.version }}
version_prefix: 'v'

- name: ☁️ Deploy to Firebase
env:
KEYSTORE_PATH: ${{ secrets.KEYSTORE_PATH }}
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## 1.0.1-alpha.0.0+20240910T231538Z - 2024-09-11

### What's Changed

- feat: Improve internal and beta release workflow by @niyajali in [#1087](https://github.com/skniyajali/PoposRoom/pull/1087)
Loading