From d8fcc1f221e1e7857d2cc0bdacafdf7232323a11 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Thu, 11 Feb 2021 23:08:15 +0200 Subject: [PATCH] github actions: add workflow for publishing terminal-view/terminal-emulator on Github Packages --- .github/workflows/publish_libraries.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish_libraries.yml diff --git a/.github/workflows/publish_libraries.yml b/.github/workflows/publish_libraries.yml new file mode 100644 index 00000000..41d76af4 --- /dev/null +++ b/.github/workflows/publish_libraries.yml @@ -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