-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.2 KB
/
cr.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
name: CR
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.BAOPSO_GPG_46948F68_PRIVATE }}
passphrase: ${{ secrets.BAOPSO_GPG_46948F68_PASSPHRASE }}
- name: Checkout code
uses: actions/checkout@master # don't get confused by @master - it is the version of the checkout action. You repo will be checked out with ${{ github.ref }}
- name: Build site and deploy maven registry
env:
BAOPSO_GPG_46948F68_KEYNAME : ${{ secrets.BAOPSO_GPG_46948F68_KEYNAME }}
BAOPSO_GPG_46948F68_PASSPHRASE : ${{ secrets.BAOPSO_GPG_46948F68_PASSPHRASE }}
OSSRH_PWD_TOKEN : ${{ secrets.OSSRH_PWD_TOKEN }}
OSSRH_USER_TOKEN : ${{ secrets.OSSRH_USER_TOKEN }}
run: mvn -V -B --no-transfer-progress --settings .github/maven-settings.xml -P release clean site deploy
- name: Deploy site
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: target/site