Added GitHub release creation to default action workflow

This commit is contained in:
Arty Bishop committed 2021-03-12 14:22:09 +00:00
1 parent cf41889017
commit 2427f8cbf5
4 files changed
+144 -17

No files matched your search

+12 -16
View File
@@ -16,17 +16,15 @@ jobs:
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: {java-version: 1.8} with: {java-version: 1.8}
- name: Run tests, assemble APK and AAB - name: Assemble APK and Bundle
id: run_tests_assemble_apk_aab
run: | run: |
chmod +x ./gradlew chmod +x ./gradlew
./gradlew test
./gradlew assembleRelease ./gradlew assembleRelease
./gradlew bundleRelease ./gradlew bundleRelease
- name: Sign release apk - name: Sign APK
uses: r0adkll/sign-android-release@v1 uses: r0adkll/sign-android-release@v1
id: sign_release_apk id: sign_apk
with: with:
releaseDirectory: app/build/outputs/apk/release releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.KEY_STORE }} signingKeyBase64: ${{ secrets.KEY_STORE }}
@@ -36,9 +34,9 @@ jobs:
env: env:
BUILD_TOOLS_VERSION: "30.0.3" BUILD_TOOLS_VERSION: "30.0.3"
- name: Sign release bundle - name: Sign Bundle
uses: r0adkll/sign-android-release@v1 uses: r0adkll/sign-android-release@v1
id: sign_release_bundle id: sign_bundle
with: with:
releaseDirectory: app/build/outputs/bundle/release releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.KEY_STORE }} signingKeyBase64: ${{ secrets.KEY_STORE }}
@@ -48,20 +46,18 @@ jobs:
env: env:
BUILD_TOOLS_VERSION: "30.0.3" BUILD_TOOLS_VERSION: "30.0.3"
- name: Deploy AAB to Play Store - name: Deploy Bundle to Play Store
uses: r0adkll/upload-google-play@v1 uses: r0adkll/upload-google-play@v1
id: deploy_bundle_to_production
with: with:
serviceAccountJsonPlainText: ${{secrets.SERVICE_ACCOUNT_JSON}} serviceAccountJsonPlainText: ${{secrets.SERVICE_ACCOUNT_JSON}}
packageName: com.rtbishop.look4sat packageName: com.rtbishop.look4sat
track: production track: production
whatsNewDirectory: fastlane/metadata/android/en-US/whatsnew whatsNewDirectory: fastlane/metadata/android/en-US/whatsnew
releaseFiles: ${{steps.sign_release_bundle.outputs.signedReleaseFile}} releaseFiles: ${{steps.sign_bundle.outputs.signedReleaseFile}}
- name: Upload files to action - name: Create release
uses: actions/upload-artifact@v2 uses: ncipollo/release-action@v1
with: with:
name: Look4Sat_files artifact: ${{steps.sign_apk.outputs.signedReleaseFile}}
path: | bodyFile: fastlane/metadata/android/en-US/whatsnew/whatsnew-en-US
${{steps.sign_release_apk.outputs.signedReleaseFile}} token: ${{ secrets.RELEASE_TOKEN }}
${{steps.sign_release_bundle.outputs.signedReleaseFile}}
+1
View File
@@ -1 +1,2 @@
/build /build
/release
+5 -1
View File
@@ -27,7 +27,11 @@ android {
targetSdkVersion 30 targetSdkVersion 30
versionCode 222 versionCode 222
versionName "2.2.2" versionName "2.2.2"
setProperty("archivesBaseName", "look4sat" + "-v" + versionName) kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
}
} }
buildTypes { buildTypes {
@@ -0,0 +1,126 @@
{
"formatVersion": 1,
"database": {
"version": 2,
"identityHash": "ae51481b0cb1f66d055cd7487e79ad2c",
"entities": [
{
"tableName": "entries",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`tle` TEXT NOT NULL, `isSelected` INTEGER NOT NULL, `catNum` INTEGER NOT NULL, `name` TEXT NOT NULL, PRIMARY KEY(`catNum`))",
"fields": [
{
"fieldPath": "tle",
"columnName": "tle",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "isSelected",
"columnName": "isSelected",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "catNum",
"columnName": "catNum",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"catNum"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "transmitters",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uuid` TEXT NOT NULL, `description` TEXT NOT NULL, `isAlive` INTEGER NOT NULL, `uplinkLow` INTEGER, `uplinkHigh` INTEGER, `downlinkLow` INTEGER, `downlinkHigh` INTEGER, `mode` TEXT, `isInverted` INTEGER NOT NULL, `catNum` INTEGER NOT NULL, PRIMARY KEY(`uuid`))",
"fields": [
{
"fieldPath": "uuid",
"columnName": "uuid",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "description",
"columnName": "description",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "isAlive",
"columnName": "isAlive",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "uplinkLow",
"columnName": "uplinkLow",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "uplinkHigh",
"columnName": "uplinkHigh",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "downlinkLow",
"columnName": "downlinkLow",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "downlinkHigh",
"columnName": "downlinkHigh",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "mode",
"columnName": "mode",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "isInverted",
"columnName": "isInverted",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "catNum",
"columnName": "catNum",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"uuid"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
}
],
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ae51481b0cb1f66d055cd7487e79ad2c')"
]
}
}