Skip to content

Commit 26c71d9

Browse files
committed
gh-action: upload snapshot as post-commit job
Signed-off-by: yue9944882 <291271447@qq.com>
1 parent ab27354 commit 26c71d9

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/snapshot.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Upload Snapshot
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- release-*
8+
workflow_dispatch: {}
9+
10+
jobs:
11+
verify:
12+
name: latest-images
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Setup Java
18+
uses: actions/setup-java@v2
19+
with:
20+
distribution: 'temurin'
21+
java-version: 8.0.x
22+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
23+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
24+
- name: Publish to Apache Maven Central
25+
run: ./mvnw deploy
26+
env:
27+
OSSRH_USERNAME: ${{ secrets.SNAPSHOT_UPLOAD_USER }}
28+
OSSRH_TOKEN: ${{ secrets.SNAPSHOT_UPLOAD_PASSWORD }}
29+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Client Capabilities](https://img.shields.io/badge/Kubernetes%20client-Silver-blue.svg?style=flat&colorB=C0C0C0&colorA=306CE8)](http://bit.ly/kubernetes-client-capabilities-badge)
55
[![Client Support Level](https://img.shields.io/badge/kubernetes%20client-beta-green.svg?style=flat&colorA=306CE8)](http://bit.ly/kubernetes-client-support-badge)
66
[![Maven Central](https://img.shields.io/maven-central/v/io.kubernetes/client-java.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.kubernetes%22%20AND%20a:%22client-java%22)
7+
![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/io.kubernetes/client-java?label=Maven%20Snapshot&server=https%3A%2F%2Foss.sonatype.org)
78

89
Java client for the [kubernetes](http://kubernetes.io/) API.
910

0 commit comments

Comments
 (0)