forked from opentracing-contrib/java-rabbitmq-client
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 866 Bytes
/
java.yml
File metadata and controls
26 lines (26 loc) · 866 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
name: java-rabbitmq-client
on:
push:
branches: ['master']
jobs:
build:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v1
with:
java-version: '8'
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Deploy to Github Package Registry
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
echo "<settings><servers><server><id>github</id><username>fullfacing</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml
mvn deploy