Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
t3t5u committed Dec 9, 2024
1 parent 78ce6a7 commit 723a31a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/gem-push.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 }}"
25 changes: 17 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@ plugins {
id "checkstyle"
id "jacoco"
id "org.embulk.embulk-plugins" version "0.4.2"
id "maven"
id 'maven-publish'
id "signing"
id "com.palantir.git-version" version "3.0.0"
// id "maven"
// id 'maven-publish'
// id "signing"
}

repositories {
mavenCentral()
}

version = "0.3.1"
group = "com.treasuredata.embulk.plugins"
group = "trocco-io"
version = {
def vd = versionDetails()
if (vd.commitDistance == 0 && vd.lastTag ==~ /^[0-9]+\.[0-9]+\.[0-9]+([.-][.a-zA-Z0-9-]+)?/) {
vd.lastTag
} else {
"0.0.0.${vd.gitHash}"
}
}()
description = "JIRA Embulk input plugin."

sourceCompatibility = 1.8
Expand Down Expand Up @@ -126,7 +134,7 @@ javadocJar {
tasks.withType(GenerateModuleMetadata) {
enabled = false
}

/*
publishing {
publications {
maven(MavenPublication) {
Expand Down Expand Up @@ -197,7 +205,7 @@ publishing {
signing {
sign publishing.publications.maven
}

*/
jacocoTestReport {
group = "Reporting"
reports {
Expand All @@ -214,7 +222,8 @@ gem {
homepage = 'https://github.com/treasure-data/embulk-input-jira'
licenses = ['Apache-2.0']
}

/*
gemPush {
host = "https://rubygems.org"
}
*/

0 comments on commit 723a31a

Please sign in to comment.