github actions: add workflow for publishing terminal-view/terminal-emulator on Github Packages

This commit is contained in:
Leonid Pliushch 2021-02-11 23:08:15 +02:00
parent 397a78f248
commit d8fcc1f221
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 25 additions and 0 deletions

25
.github/workflows/publish_libraries.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Publish library packages
on:
push:
branches:
- master
paths:
- 'terminal-emulator/build.gradle'
- 'terminal-view/build.gradle'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Perform release build
run: |
./gradlew assembleRelease
- name: Publish libraries on Github Packages
env:
GH_USERNAME: xeffyr
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
./gradlew publish