This repository was archived by the owner on Apr 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 116
61 lines (57 loc) · 1.63 KB
/
push.yml
File metadata and controls
61 lines (57 loc) · 1.63 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
name: Push
on:
push:
branches:
- main
jobs:
build:
uses: ./.github/workflows/test.yml
publish-javadoc:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
path: source
- name: Download JavaDoc
uses: actions/download-artifact@v4
with:
name: javadoc
path: javadoc
- name: Checkout publish
uses: actions/checkout@v4
with:
path: publish
ref: gh-pages
- name: Publish
run: ./scripts/ci_scripts/publishApiDocs.sh
working-directory: source
env:
GITHUB_USER: github-actions
GITHUB_EMAIL: github-actions@github.com
SOURCE_DIR: ${{ github.workspace }}/source
PUBLISH_DIR: ${{ github.workspace }}/publish
SOURCE_BRANCH: ${{ github.ref_name }}
JAVADOC_DIR: ${{ github.workspace }}/javadoc
publish-snapshot:
needs: build
name: Publish Java artifact to GitHub Packages
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
cache: maven
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
run: ${{ github.workspace }}/.github/scripts/maven_publish_snapshot.sh