Skip to content

Commit

Permalink
Merge pull request #3 from trocco-io/fix_readme_and_separate_workflows
Browse files Browse the repository at this point in the history
Fix readme and separate workflows
  • Loading branch information
NamedPython authored Sep 12, 2024
2 parents b90e808 + 4c592eb commit 97da014
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 26 deletions.
34 changes: 9 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: main
name: ci

on:
workflow_dispatch:
Expand All @@ -11,30 +11,14 @@ on:
types: [opened, synchronize]

jobs:
main:
ci:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 1.8
- name: lint
run: ./gradlew spotlessCheck
- name: print 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
with:
language: java
gem-path: "./build/gems/*.gem"
github-token: "${{ secrets.GITHUB_TOKEN }}"
distribution: temurin
java-version: 8
- run: ./gradlew check
- run: ./gradlew spotlessCheck
- run: ./gradlew test
27 changes: 27 additions & 0 deletions .github/workflows/push-gem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Ruby Gem

on:
workflow_dispatch:
push:
tags:
- "*"

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: push gem
uses: trocco-io/push-gem-to-gpr-action@v2
with:
language: java
gem-path: "./build/gems/*.gem"
github-token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This plugin uses Apache POI.

* **Plugin type**: parser
* **Guess supported**: no
* Embulk 0.10 or later
* Embulk 0.9 or earlier


## Example
Expand Down

0 comments on commit 97da014

Please sign in to comment.