File tree Expand file tree Collapse file tree 2 files changed +36
-25
lines changed Expand file tree Collapse file tree 2 files changed +36
-25
lines changed Original file line number Diff line number Diff line change 1
- name : main
1
+ name : ci
2
2
3
3
on :
4
4
workflow_dispatch :
11
11
types : [opened, synchronize]
12
12
13
13
jobs :
14
- main :
14
+ ci :
15
15
runs-on : ubuntu-latest
16
- permissions :
17
- packages : write
18
- contents : read
19
16
steps :
20
- - uses : actions/checkout@v1
21
- - name : Set up JDK 1.8
22
- uses : actions/setup-java@v1
17
+ - uses : actions/checkout@v4
18
+ - uses : actions/setup-java@v4
23
19
with :
24
- java-version : 1.8
25
- - name : lint
26
- run : ./gradlew spotlessCheck
27
- - name : print version
28
- run : ./gradlew printVersion
29
- - name : Build Gem & Put it into './build/gems/' Directory
30
- run : ./gradlew gem
31
- - name : Set up JRuby
32
- uses : ruby/setup-ruby@v1
33
- with :
34
- ruby-version : jruby
35
- - name : push gem
36
- uses : trocco-io/push-gem-to-gpr-action@v1
37
- with :
38
- language : java
39
- gem-path : " ./build/gems/*.gem"
40
- github-token : " ${{ secrets.GITHUB_TOKEN }}"
20
+ distribution : temurin
21
+ java-version : 8
22
+ - run : ./gradlew check
23
+ - run : ./gradlew spotlessCheck
24
+ - run : ./gradlew test
Original file line number Diff line number Diff line change
1
+ name : Ruby Gem
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ tags :
7
+ - " *"
8
+
9
+ jobs :
10
+ build :
11
+ name : Build + Publish
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ packages : write
15
+ contents : read
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Set up Ruby 2.7
19
+ uses : ruby/setup-ruby@v1
20
+ with :
21
+ ruby-version : 2.7
22
+ - name : push gem
23
+ uses : trocco-io/push-gem-to-gpr-action@v2
24
+ with :
25
+ language : java
26
+ gem-path : " ./build/gems/*.gem"
27
+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
You can’t perform that action at this time.
0 commit comments