-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.04 KB
/
release.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
name: Deployment
on:
push:
branches:
- master
jobs:
deploy:
runs-on: macos-14
steps:
- name: Setup Gradle Repo
uses: Oztechan/Global/actions/setup-gradle-repo@48b08c776cee706477e996d13da5e28756da9192
- name: Publish
run: ./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
- name: Notify slack success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: submob
status: SUCCESS
color: good
- name: Notify slack fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: submob
status: FAILED
color: danger