Browse Source

Remove towncrier invocation when building nightly.

pull/3105/head
Benoit Marty 3 months ago
parent
commit
a565a0396f
  1. 9
      .github/workflows/nightly.yml
  2. 3
      app/build.gradle.kts
  3. 4
      docs/nightly_build.md
  4. 5
      tools/release/ReleaseNotesNightly.md

9
.github/workflows/nightly.yml

@ -22,15 +22,6 @@ jobs: @@ -22,15 +22,6 @@ jobs:
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- name: Install towncrier
run: |
python3 -m pip install towncrier
- name: Prepare changelog file
run: |
mv towncrier.toml towncrier.toml.bak
sed 's/CHANGES\.md/CHANGES_NIGHTLY\.md/' towncrier.toml.bak > towncrier.toml
rm towncrier.toml.bak
yes n | towncrier build --version nightly
- name: Build and upload Nightly application
run: |
./gradlew assembleGplayNightly appDistributionUploadGplayNightly $CI_GRADLE_ARG_PROPERTIES

3
app/build.gradle.kts

@ -140,8 +140,7 @@ android { @@ -140,8 +140,7 @@ android {
artifactPath = "$rootDir/app/build/outputs/apk/gplay/nightly/app-gplay-universal-nightly.apk"
// artifactType = "AAB"
// artifactPath = "$rootDir/app/build/outputs/bundle/nightly/app-nightly.aab"
// This file will be generated by the GitHub action
releaseNotesFile = "CHANGES_NIGHTLY.md"
releaseNotesFile = "tools/release/ReleaseNotesNightly.md"
groups = "external-testers"
// This should not be required, but if I do not add the appId, I get this error:
// "App Distribution halted because it had a problem uploading the APK: [404] Requested entity was not found."

4
docs/nightly_build.md

@ -42,10 +42,6 @@ Then you can run the following commands (which are also used in the file for [th @@ -42,10 +42,6 @@ Then you can run the following commands (which are also used in the file for [th
```sh
git checkout develop
mv towncrier.toml towncrier.toml.bak
sed 's/CHANGES\.md/CHANGES_NIGHTLY\.md/' towncrier.toml.bak > towncrier.toml
rm towncrier.toml.bak
yes n | towncrier build --version nightly
./gradlew assembleGplayNightly appDistributionUploadGplayNightly $CI_GRADLE_ARG_PROPERTIES
```

5
tools/release/ReleaseNotesNightly.md

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
# Element X Android nightly build
See which PRs have been merged recently here:
https://github.com/element-hq/element-x-android/pulls?q=is%3Apr+sort%3Aupdated-desc+is%3Aclosed
Loading…
Cancel
Save