-
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.24 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
49
50
name: Release
on:
workflow_dispatch:
concurrency:
group: release
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/ci.yml
secrets: inherit
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: oracle
java-version: 22
check-latest: true
- uses: gradle/actions/setup-gradle@v3
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- run: ./gradlew assemble
- run: yarn install --immutable
- run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME_TOKEN }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD_TOKEN }}
pages:
uses: ./.github/workflows/pages.yml
needs: deploy