forked from aliyun/aliyun-odps-java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.24 KB
/
main.yml
File metadata and controls
47 lines (40 loc) · 1.24 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
name: Release
on:
push:
tags:
- "v*public"
- "v*SNAPSHOT"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Java and Maven
uses: actions/setup-java@v1
with:
java-version: 8
- name: Setup gpg
run: |
mkdir ~/.gnupg
echo use-agent >> ~/.gnupg/gpg.conf
echo pinentry-mode loopback >> ~/.gnupg/gpg.conf
echo allow-loopback-pinentry >> ~/.gnupg/gpg-agent.conf
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}
server_id: ossrh
maven_args: -DskipTests
- name: Release to GitHub packages
uses: ncipollo/release-action@v1
with:
allowUpdates: true
omitName: true
artifacts: 'CHANGELOG.md'
token: ${{ secrets.RELEASE_TOKEN }}