-
Notifications
You must be signed in to change notification settings - Fork 157
83 lines (79 loc) · 2.92 KB
/
publish.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Publish
on:
release:
types: [ prereleased, released ]
env:
sonatypeUsername: ${{ secrets.SONATYPEUSERNAME }}
sonatypePassword: ${{ secrets.SONATYPEPASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PASSPHRASE }}
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: gradle/actions/setup-gradle@v4
- name: Setup versions
run: ./gradlew :updateVersions
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish Firebase Analytics
run: ./gradlew :firebase-analytics:publish
- name: Publish Firebase App
run: ./gradlew :firebase-app:publish
- name: Publish Firebase Auth
run: ./gradlew :firebase-auth:publish
- name: Publish Firebase Common
run: ./gradlew :firebase-common:publish
- name: Publish Firebase Common Internal
run: ./gradlew :firebase-common-internal:publish
- name: Publish Firebase Config
run: ./gradlew :firebase-config:publish
- name: Publish Firebase Database
run: ./gradlew :firebase-database:publish
- name: Publish Firebase Firestore
run: ./gradlew :firebase-firestore:publish
- name: Publish Firebase Functions
run: ./gradlew :firebase-functions:publish
- name: Publish Firebase Messaging
run: ./gradlew :firebase-messaging:publish
- name: Publish Firebase Storage
run: ./gradlew :firebase-storage:publish
- name: Publish Firebase Installations
run: ./gradlew :firebase-installations:publish
- name: Publish Firebase Performance
run: ./gradlew :firebase-perf:publish
- name: Publish Firebase Crashlytics
run: ./gradlew :firebase-crashlytics:publish
documentation:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: gradle/gradle-build-action@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate documentation
run: ./gradlew dokkaHtmlMultiModule
- name: Uploading build folder
uses: actions/upload-artifact@v4
with:
name: artefact
path: build/dokka/htmlMultiModule
- name: Deploy API documentation to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build/dokka/htmlMultiModule
target-folder: docs