-
Notifications
You must be signed in to change notification settings - Fork 50
40 lines (35 loc) · 1.02 KB
/
release.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
name: Pulsar-Spark Release
on:
release:
types: [created]
jobs:
upload:
name: Upload Release files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- uses: actions/checkout@v2
with:
repository: streamnative/streamnative-ci
token: ${{ secrets.SNBOT_GITHUB_TOKEN }}
ref: master
path: ci
- name: Import GPG key
env:
SNBOT_SECRET_PASSPHRASE: ${{ secrets.SNBOT_SECRET_PASSPHRASE }}
run: |
ci/.github/bot/setup-git.sh
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
nexus_username: ${{ secrets.SONATYPE_USERNAME }}
nexus_password: ${{ secrets.SONATYPE_PASSWORD }}
server_id: ossrh
maven_profiles: release
maven_goals_phases: clean deploy
maven_args: -DskipTests