Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 7bcdc09

Browse files
committed
github: add release workflow for library subprojects
Signed-off-by: Harsh Shandilya <[email protected]>
1 parent 61b5285 commit 7bcdc09

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Release library subprojects"
2+
on:
3+
push:
4+
tags:
5+
- openpgp-ktx-v*
6+
- autofill-parser-v*
7+
8+
jobs:
9+
publish-release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@c952173edf28a2bd22e1a4926590c1ac39630461
14+
15+
- name: Determine publishing task
16+
id: task-select
17+
run: |
18+
set -x
19+
TAG=${GITHUB_REF/refs\/tags\//}
20+
if [[ "${TAG}" =~ "openpgp-ktx" ]]; then
21+
echo '::set-output name=PROJECT::openpgp-ktx'
22+
elif [[ "${TAG}" =~ "autofill-parser" ]]; then
23+
echo '::set-output name=PROJECT::autofill-parser'
24+
fi
25+
26+
- name: Publish snapshot
27+
uses: burrunan/gradle-cache-action@03c71a8ba93d670980695505f48f49daf43704a6
28+
with:
29+
arguments: :${{ steps.task-select.outputs.PROJECT }}:publishApsPublicationToBintrayRepository
30+
env:
31+
MAVEN_USER: msfjarvis
32+
MAVEN_PASSWORD: ${{ secrets.BINTRAY_TOKEN }}

0 commit comments

Comments
 (0)