-
-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (45 loc) · 1.51 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
44
45
46
47
48
---
name: "Release"
on:
push:
tags: ["v*.*.*"]
jobs:
publish-maven:
runs-on: "macos-latest"
environment:
name: "maven-central"
url: "https://central.sonatype.com/namespace/dev.sargunv.maplibre-compose"
steps:
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
- run: "git fetch --tags --force" # https://github.com/actions/checkout/issues/290
- uses: "./.github/actions/setup"
- run: "./gradlew publishAndReleaseToMavenCentral --no-configuration-cache"
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: "${{ secrets.MAVEN_CENTRAL_USERNAME }}"
ORG_GRADLE_PROJECT_mavenCentralPassword: "${{ secrets.MAVEN_CENTRAL_PASSWORD }}"
ORG_GRADLE_PROJECT_signingInMemoryKey: "${{ secrets.GPG_PRIVATE_KEY }}"
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: "${{ secrets.GPG_PASSPHRASE }}"
publish-pages:
needs:
- "publish-maven"
runs-on: "macos-latest"
permissions:
pages: "write"
id-token: "write"
environment:
name: "github-pages"
url: "${{ steps.deploy-pages.outputs.page_url }}"
steps:
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
- run: "git fetch --tags --force" # https://github.com/actions/checkout/issues/290
- uses: "./.github/actions/setup"
- run: "./gradlew generateDocs"
- uses: "actions/upload-pages-artifact@v3"
with:
path: "build/docs"
- uses: "actions/deploy-pages@v4"
id: "deploy-pages"