-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
91 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: "Release (photos independent)" | ||
|
||
on: | ||
workflow_dispatch: # Allow manually running the action | ||
push: | ||
# Run when a tag matching the pattern "photos-v*"" is pushed | ||
# See: [Note: Testing release workflows that are triggered by tags] | ||
tags: | ||
- "photos-v*" | ||
|
||
env: | ||
FLUTTER_VERSION: "3.13.4" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
working-directory: mobile | ||
|
||
steps: | ||
- name: Checkout code and submodules | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Flutter ${{ env.FLUTTER_VERSION }} | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
cache: true | ||
|
||
- name: Setup keys | ||
uses: timheuer/base64-to-file@v1 | ||
with: | ||
fileName: "keystore/ente_photos_key.jks" | ||
encodedString: ${{ secrets.SIGNING_KEY_PHOTOS }} | ||
|
||
- name: Build independent APK | ||
run: flutter build apk --release --flavor independent && mv build/app/outputs/flutter-apk/app-independent-release.apk build/app/outputs/flutter-apk/ente.apk | ||
env: | ||
SIGNING_KEY_PATH: "/home/runner/work/_temp/keystore/ente_photos_key.jks" | ||
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS_PHOTOS }} | ||
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD_PHOTOS }} | ||
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD_PHOTOS }} | ||
|
||
- name: Checksum | ||
run: sha256sum build/app/outputs/flutter-apk/ente.apk > build/app/outputs/flutter-apk/sha256sum | ||
|
||
- name: Create a draft GitHub release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "mobile/build/app/outputs/flutter-apk/ente.apk,mobile/build/app/outputs/flutter-apk/sha256sum" | ||
draft: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
# Releases | ||
|
||
Create a PR to bump up the version number in `pubspec.yaml`. | ||
Create a PR to bump up the version in `pubspec.yaml`. Once that is merged, tag | ||
main, and push the tag. | ||
|
||
Once that is merged, tag main (using the `auth-v1.2.3` format), and push the | ||
tag. This'll trigger a GitHub workflow that: | ||
```sh | ||
git tag auth-v1.2.3 | ||
git push origin auth-v1.2.3 | ||
``` | ||
|
||
This'll trigger a GitHub workflow that: | ||
|
||
* Creates a new draft GitHub release and attaches all the build artifacts to it | ||
(mobile APKs and various desktop packages), | ||
|
||
* Creates a new release in the internal track on Play Store. | ||
|
||
Once the workflow completes, go to the draft GitHub release that was created. | ||
Set "Previous tag" to the last release of auth and press "Generate release | ||
notes". The generated release note will contain all PRs and new contributors | ||
from all the releases in the monorepo, so you'll need to filter them to keep | ||
only the things that relate to the auth. | ||
|
||
--- | ||
|
||
(TODO(MR): Fix this after the monorepo move) Xcode Cloud has already been | ||
configured and will automatically build and release to TestFlight when step 1 | ||
was merged to main (you can see logs under the PR checks). | ||
|
||
If you want to make changes to the workflow itself, or test it out, you can push | ||
a tag like `auth-v1.2.3-test` (where v1.2.3 is the next expected version that'll | ||
go out). For more details, see the comments on top of the [auth-release | ||
workflow](.github/workflows/auth-release.yml). | ||
|
||
Once the workflow completes, go to the draft GitHub release it that was created. | ||
Use the "Generate release notes" button after setting the "Previous tag" for the | ||
last release of auth. The generated release note will contain all PRs and new | ||
contributors from all the releases in the monorepo, so you'll need to filter | ||
them to keep only the things that relate to auth. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.