Skip to content

Commit

Permalink
config credential
Browse files Browse the repository at this point in the history
  • Loading branch information
BaekGeunYoung committed Mar 13, 2024
1 parent 0a06be5 commit 9841fb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- 'v*'
workflow_dispatch:

env:
PACKAGE_GITHUB_TOKEN: ${{ secrets.IAMPORT_COMMON }}

jobs:
publish:
name: Build and Publish
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ val commonPublishSettings = Seq(
Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
scala.sys.env("GITHUB_ACTOR"),
scala.sys.env("GITHUB_TOKEN")
scala.sys.env.get("PACKAGE_GITHUB_TOKEN").fold(scala.sys.env("CHAI_GPR_USERNAME"))(_ => "iamport-github"),
scala.sys.env.getOrElse("PACKAGE_GITHUB_TOKEN", scala.sys.env("CHAI_GPR_TOKEN"))
)
),
publishTo := Some(
Expand Down

0 comments on commit 9841fb3

Please sign in to comment.