-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.2 KB
/
deploy-tag.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy tag
on:
push:
# on any tag created from git
tags:
- "*"
release:
# on any new release created from github
types: [created]
workflow_dispatch:
# show a button to manually trigger this workflow
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin" # aka adopt
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Append Version
run: |
Name=${{ github.ref_name }}
Name=`echo ${Name}| tr \/_ -`
echo "VERSION_NAME=$Name" >> gradle.properties
echo "RELEASE_SIGNING_ENABLED=false" >> gradle.properties
- name: Run build
run: >
./gradlew
publishAllPublicationsToGithubRepository
-Pandroid.experimental.settings.executionProfile=ci
--no-daemon
--no-parallel
env:
GPR_USERNAME: ${{ github.repository_owner }}
GPR_TOKEN: ${{ github.token }}
# - name: Release
# run: ./gradlew closeAndReleaseRepository