Skip to content

Commit

Permalink
configure publish
Browse files Browse the repository at this point in the history
  • Loading branch information
BaekGeunYoung committed Mar 13, 2024
1 parent dc29392 commit fd8339b
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 45 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: publish

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

jobs:
publish:
name: Build and Publish
strategy:
matrix:
os: [ ubuntu-latest ]
scala: [ 2.13.6 ]
java: [ [email protected] ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2

- name: Setup Java and Scala
uses: olafurpg/setup-scala@v13
with:
java-version: ${{ matrix.java }}

- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier/cache/v1
~/.cache/coursier/v1
~/AppData/Local/Coursier/Cache/v1
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: publish
run: sbt ++${{ matrix.scala }} publish
43 changes: 0 additions & 43 deletions .github/workflows/release.yml

This file was deleted.

17 changes: 15 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,27 @@ ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

ThisBuild / versionScheme := Some("early-semver")

publish / skip := true
ThisBuild / resolvers += "GitHub Package Registry (iamport/zio-grpc)" at "https://maven.pkg.github.com/iamport/zio-grpc"

ThisBuild / credentials ++= Seq(
Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
scala.sys.env("GITHUB_ACTOR"),
scala.sys.env("GITHUB_TOKEN")
)
)

publishTo := Some("GitHub Package Registry (iamport/zio-grpc)" at "https://maven.pkg.github.com/iamport/zio-grpc")

sonatypeProfileName := "com.thesamet"
publish / skip := true

inThisBuild(
List(
organization := "com.thesamet.scalapb.zio-grpc",
homepage := Some(url("https://github.com/scalapb/zio-grpc")),
organization := "finance.chai",
homepage := Some(url("https://github.com/iamport/zio-grpc")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
Expand Down

0 comments on commit fd8339b

Please sign in to comment.