-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (43 loc) · 1.11 KB
/
main.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
41
42
43
44
45
46
47
name: main
on:
workflow_dispatch:
push:
branches:
- "master"
tags:
- "*"
pull_request:
branches:
- "master"
types: [opened, synchronize]
permissions:
contents: read
packages: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: lint
# Run ./gradlew spotlessApply when failing on this step.
run: ./gradlew spotlessCheck
- run: ./gradlew test
- name: Show Current Version
run: ./gradlew printVersion
- name: Build Gem & Put it into './build/gems/' Directory
run: ./gradlew gem
- name: Set up JRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: jruby
- name: push gem
uses: trocco-io/push-gem-to-gpr-action@v1
if: startsWith( github.ref, 'refs/tags/' ) || github.event_name == 'workflow_dispatch'
with:
language: java
gem-path: "./build/gems/*.gem"
github-token: "${{ secrets.GITHUB_TOKEN }}"