-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise Github Actions workflows for automated releases
Signed-off-by: Mark Bestavros <markbest@bu.edu>
- Loading branch information
1 parent
ec9c065
commit bc121db
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/android.yml → .github/workflows/pull-request.yml
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,4 +1,4 @@ | ||
name: Breezy Weather CI | ||
name: Breezy Weather - Pull Request CI | ||
|
||
on: | ||
push: | ||
|
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,45 @@ | ||
name: Breezy Weather Release | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
tags: [ v* ] | ||
paths-ignore: | ||
- ".editorconfig" | ||
- "fastlane/*" | ||
- "work/*" | ||
- "CONTRIBUTE.md" | ||
- "FEATURES.md" | ||
- "LICENSE" | ||
- "PROVIDERS.md" | ||
- "README.md" | ||
|
||
jobs: | ||
release-build: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'temurin' | ||
cache: gradle | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Upload APK | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: BreezyWeather_fdroidDebug.apk | ||
path: app/build/outputs/apk/fdroid/debug/BreezyWeather.apk | ||
- name: Create Github Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
prerelease: true | ||
files: | | ||
app/build/outputs/apk/fdroid/debug/BreezyWeather.apk |
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