-
Notifications
You must be signed in to change notification settings - Fork 191
78 lines (67 loc) · 2.21 KB
/
publish.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Publish
on:
push:
branches:
- master
env:
DEV_RESOURCES_VERSION: 1.7
MAVEN_OPTS: "-XX:CompressedClassSpaceSize=256m -XX:+UseSerialGC -Xmx2g -XX:MaxMetaspaceSize=512m"
jobs:
publish:
if: github.repository == 'locationtech/geowave'
runs-on: ubuntu-18.04
name: Publish Artifacts and Docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHANGELOG_GITHUB_TOKEN: ${{ secrets.CHANGELOG_TOKEN }}
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }}
PYPI_CREDENTIALS: ${{ secrets.PYPI_CREDENTIALS }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: joschi/setup-jdk@v2
with:
java-version: '8'
architecture: x64
- name: Cache resources
uses: actions/cache@v2
env:
cache-name: cache-geowave-resources
with:
key: ${{ runner.os }}-Publish
path: ~/.m2
- name: Install Local Artifacts
run: mvn install -B -DskipTests -Dspotbugs.skip
- name: Publish Artifacts
run: ./.utility/publish-artifacts.sh
- name: Generate Changelog
uses: heinrichreimer/github-changelog-generator-action@v2.2
with:
issues: true
issuesWoLabels: true
pullRequests: true
prWoLabels: true
author: true
unreleased: true
stripGeneratorNotice: true
verbose: true
compareLink: true
httpCache: true
filterByMilestone: true
- name: Convert Changelog to HTML
uses: docker://pandoc/core:2.9
with:
args: "-f markdown -t html -s -c stylesheets/changelog.css -o changelog.html CHANGELOG.md"
- name: Build HTML Docs
run: mvn -P html -pl docs install -DskipTests -Dspotbugs.skip
- name: Build Aggregate Javadocs
run: mvn javadoc:aggregate -B -DskipTests -Dspotbugs.skip
- name: Build Python Docs
run: ./.utility/build-python-docs.sh
- name: Publish Docs to GH-Pages
run: ./.utility/publish-docs.sh