-
Notifications
You must be signed in to change notification settings - Fork 11
66 lines (65 loc) · 1.84 KB
/
Copy pathrelease.yml
File metadata and controls
66 lines (65 loc) · 1.84 KB
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
name: Release
on:
release:
types: [published]
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy-artifact:
if: ${{ github.repository_owner == 'reactiverse'}} && false
runs-on: ubuntu-latest
env:
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
MAVEN_GPG_KEY: ${{ secrets.GPG_SIGNING_KEY }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.release.tag_name }}
- name: Install JDK
uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
server-id: central
server-username: CENTRAL_USERNAME
server-password: CENTRAL_PASSWORD
- name: Maven deploy
run: mvn deploy -DskipTests -B -Dgpg.signer=bc
package-docs:
if: ${{ github.repository_owner == 'reactiverse'}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.release.tag_name }}
- name: Install JDK
uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- name: Build docs
run: mvn package site -DskipTests -B
- name: Build docs with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./docs/
destination: ./_site
- name: Upload docs as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
deploy-docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: package-docs
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4