-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (40 loc) · 1.11 KB
/
onPush.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
name: Push Workflow
on:
push:
branches-ignore:
- 'master'
- 'release/next'
env:
CI: true
LANG: en_US.UTF-8
API_LEVEL: 29
concurrency:
group: ci-push-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build And Test
runs-on: macos-latest-xl
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Libraries
shell: bash
run: ./gradlew :app:build --no-daemon
- name: Set Alpha Version
id: incremented-alpha-version
uses: ./.github/actions/update-gradle-version
with:
type: alpha
- name: prepare release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_SIGNING_KEY }}
run: ./gradlew publish --no-daemon --no-parallel