-
-
Notifications
You must be signed in to change notification settings - Fork 62
48 lines (43 loc) · 1.29 KB
/
realease.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
name: Release cucumber-android
on:
push:
branches:
- release/*
jobs:
publish:
name: Publish cucumber-android
runs-on: macos-13
environment: Release
steps:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/checkout@v2
- name: Check commit has been pushed on origin/main
run: |
git fetch --quiet origin main
git merge-base --is-ancestor HEAD origin/main
- name: Build the app
run: ./gradlew build --stacktrace -x lint
- name: run tests
uses: ./.github/actions/android-test
- name: Publish
uses: ./.github/actions/action-publish-gradle
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus-username: ${{ secrets.SONATYPE_USERNAME }}
nexus-password: ${{ secrets.SONATYPE_PASSWORD }}
create-github-release:
name: Create GitHub Release and Git tag
needs: publish
runs-on: ubuntu-latest
environment: Release
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: cucumber/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}