-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (49 loc) · 1.37 KB
/
deploy.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
on:
push:
branches:
- main
jobs:
build:
uses: xolider/Kteepass/.github/workflows/build-test.yml@main
deploy:
runs-on: 'ubuntu-latest'
name: 'Deploy to Maven Central'
needs:
- build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- run: chmod +x ./gradlew
name: 'Make ./gradlew executable'
- run: ./gradlew --no-daemon -D"maven.user=${{ secrets.MAVEN_USER }}" -D"maven.password=${{ secrets.MAVEN_PASSWORD }}" publish
documentation:
name: 'Publish documentation'
runs-on: 'ubuntu-latest'
needs:
- build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- run: chmod +x ./gradlew
name: 'Make ./gradlew executable'
- run: ./gradlew --no-daemon dokkaHtml
name: 'Generate HTML documentation'
- uses: actions/[email protected]
name: 'Upload documentation artifact'
with:
path: 'build/dokka/html'
- uses: actions/deploy-pages@v4
name: 'Deploy documentation'
id: deployment