Skip to content

Commit

Permalink
Added gem publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
t3t5u committed Mar 1, 2024
1 parent ec905e7 commit 5aef6d0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Ruby Gem

on:
workflow_dispatch:
push:
tags:
- '*'

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
matrix:
type:
- jdbc
- mysql
- postgresql
- redshift
- sqlserver
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: push gem
uses: t3t5u/push-gem-to-gpr-action@v1
with:
language: java
gem-path: "embulk-output-${{ matrix.type }}/build/gems/*.gem"
github-token: "${{ secrets.GITHUB_TOKEN }}"
gradle-subproject: "embulk-output-${{ matrix.type }}"
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
id "signing"
id 'checkstyle'
id "org.embulk.embulk-plugins" version "0.6.2" apply false
id "com.palantir.git-version" version "3.0.0"
}

allprojects {
Expand All @@ -15,11 +16,16 @@ allprojects {
description = "Inserts or updates records to a table."
}

ext {
troccoVersion = "0.0.1"
}

subprojects {
apply plugin: 'java'
apply plugin: "maven-publish"
apply plugin: "signing"
apply plugin: "org.embulk.embulk-plugins"
apply plugin: 'com.palantir.git-version'
//apply plugin: 'jacoco'

repositories {
Expand Down Expand Up @@ -106,6 +112,7 @@ subprojects {
summary = "JDBC output plugin for Embulk"
homepage = "https://github.com/embulk/embulk-output-jdbc"
licenses = [ "Apache-2.0" ]
archiveVersion = "${project.version}.trocco.${project.troccoVersion}"

into("default_jdbc_driver") {
from configurations.defaultJdbcDriver
Expand Down

0 comments on commit 5aef6d0

Please sign in to comment.