-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (34 loc) · 980 Bytes
/
deploy.yml
File metadata and controls
40 lines (34 loc) · 980 Bytes
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: Push openml-python packages to maven central repository
on:
push:
tags:
- '*.*.*' # release tags
branches:
- 'master'
- 'hf-*' # hotfix branches
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: |
git fetch -f --tags
echo exit code $?
git tag --list
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish maven package
run: mvn deploy -B -Prelease --batch-mode -DskipTests=true
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASS }}
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
PGP_PASS: ${{ secrets.PGP_PASS }}