aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-06-28 21:28:24 +0530
committerGitHub <noreply@github.com>2020-06-28 21:28:24 +0530
commita3eaefa50dc87f208a11e077697f0f4f50674fa0 (patch)
tree5184a455d9243d402aebe9140b64aa2dba5c4e44 /.github
parent535ad1dbb137f4fc633cde439b24818843220eea (diff)
Rework GitHub Actions (#893)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/branch_deploy.yml72
-rw-r--r--.github/workflows/draft_new_release.yml6
2 files changed, 3 insertions, 75 deletions
diff --git a/.github/workflows/branch_deploy.yml b/.github/workflows/branch_deploy.yml
deleted file mode 100644
index 76494f2a..00000000
--- a/.github/workflows/branch_deploy.yml
+++ /dev/null
@@ -1,72 +0,0 @@
-on:
- push:
- branches-ignore:
- - develop
- paths:
- - '.github/**'
- - 'app/**'
- - 'gradle/**'
- - '*.properties'
- - '*.gradle'
- - 'gradlew'
- - 'gradlew.bat'
-
-name: Build debug
-jobs:
- generate-debug-build:
- runs-on: ubuntu-latest
- if: "!contains(github.event.head_commit.message, '[ci skip]')"
- steps:
- - name: Checkout repository
- uses: actions/checkout@v1
-
- - name: Decrypt secrets
- run: release/signing-setup.sh "$ENCRYPT_KEY"
- env:
- ENCRYPT_KEY: ${{ secrets.ENCRYPT_KEY }}
-
- - name: Copy CI gradle.properties
- run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
-
- - name: Generate cache key
- run: ./.github/checksum.sh checksum.txt
-
- - name: Cache gradle modules
- uses: actions/cache@v1
- with:
- path: ~/.gradle/caches/modules-2
- key: ${{ runner.os }}-gradlemodules-${{ hashFiles('checksum.txt') }}
- restore-keys: |
- ${{ runner.os }}-gradlemodules-
-
- - name: Cache gradle jars
- uses: actions/cache@v1
- with:
- path: ~/.gradle/caches/jars-3
- key: ${{ runner.os }}-gradlejars-${{ hashFiles('checksum.txt') }}
- restore-keys: |
- ${{ runner.os }}-gradlejars-
-
- - name: Cache gradle build
- uses: actions/cache@v1
- with:
- path: ~/.gradle/caches/build-cache-1
- key: ${{ runner.os }}-gradlebuildcache-${{ hashFiles('checksum.txt') }}
- restore-keys: |
- ${{ runner.os }}-gradlebuildcache-
-
- - name: Download gradle dependencies
- run: ./gradlew dependencies
-
- - name: Build debug app
- run: ./gradlew :app:assembleDebug
-
- - name: Clean secrets
- run: release/signing-cleanup.sh
-
- - name: Send APK to Telegram
- run: release/deploy-telegram.sh
- env:
- TG_TO: ${{ secrets.TELEGRAM_TO }}
- TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
- TG_FILE: ./app/build/outputs/apk/debug/app-debug.apk
diff --git a/.github/workflows/draft_new_release.yml b/.github/workflows/draft_new_release.yml
index d45f200a..0e91926b 100644
--- a/.github/workflows/draft_new_release.yml
+++ b/.github/workflows/draft_new_release.yml
@@ -18,7 +18,7 @@ jobs:
echo "::set-env name=RELEASE_VERSION::$VERSION"
- name: Create release branch
- run: git checkout -b release/${{ env.RELEASE_VERSION }}
+ run: git checkout -b release-${{ env.RELEASE_VERSION }}
- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@1.1.0
@@ -36,12 +36,12 @@ jobs:
git commit --message "Prepare release ${{ env.RELEASE_VERSION }}"
- name: Push new branch
- run: git push origin release/${{ env.RELEASE_VERSION }}
+ run: git push origin release-${{ env.RELEASE_VERSION }}
- name: Create pull request
uses: thomaseizinger/create-pull-request@1.0.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- head: release/${{ env.RELEASE_VERSION }}
+ head: release-${{ env.RELEASE_VERSION }}
base: release
title: Release ${{ env.RELEASE_VERSION }}