Rework CI setup
This commit is contained in:
@@ -4,7 +4,11 @@ on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- 11-dev
|
||||
- '*'
|
||||
- '*/*'
|
||||
- '**'
|
||||
- '!11-dev-localization'
|
||||
- '!11-alpha'
|
||||
|
||||
jobs:
|
||||
build-debug-apk:
|
||||
@@ -45,26 +49,9 @@ jobs:
|
||||
with:
|
||||
name: Debug APK
|
||||
path: ${{ steps.sign-debug-apk.outputs.signedReleaseFile }}
|
||||
send-apk:
|
||||
send-notifications:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-debug-apk
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: Debug APK
|
||||
path: artifacts/debug-apk
|
||||
- uses: technote-space/workflow-conclusion-action@v2.1.5
|
||||
- name: Send APK
|
||||
uses: appleboy/telegram-action@v0.1.0
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_CI_CHANNEL_ID }}
|
||||
token: ${{ secrets.TELEGRAM_CI_BOT_TOKEN }}
|
||||
document: artifacts/debug-apk/**.apk
|
||||
message: ''
|
||||
send-changelog:
|
||||
runs-on: ubuntu-latest
|
||||
needs: send-apk
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v2.3.4
|
||||
@@ -81,10 +68,18 @@ jobs:
|
||||
packages: |
|
||||
gitpython
|
||||
requests
|
||||
- name: Send changelog
|
||||
run: python send_changelog.py
|
||||
fnmatch
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: Debug APK
|
||||
path: artifacts/debug-apk
|
||||
- name: Send notifications
|
||||
run: python send_notifications.py
|
||||
env:
|
||||
GITHUB_EVENT_BEFORE: ${{ github.event.before }}
|
||||
TELEGRAM_CI_BOT_TOKEN: ${{ secrets.TELEGRAM_CI_BOT_TOKEN }}
|
||||
TELEGRAM_CI_CHANNEL_ID: ${{ secrets.TELEGRAM_CI_CHANNEL_ID }}
|
||||
BRANCH: 11-dev
|
||||
TELEGAM_TEAM_GROUP_ID: ${{ secrets.NOTIFY_CHANNEL_ID }}
|
||||
ARTIFACT_DIRECTORY: artifacts/debug-apk
|
||||
GITHUB_REF: ${{ github.ref }}
|
||||
|
||||
Reference in New Issue
Block a user