Skip to content

Commit

Permalink
Merge pull request #2 from commandk-dev/release-workflow
Browse files Browse the repository at this point in the history
Release workflow
  • Loading branch information
georgeshanti authored Aug 10, 2023
2 parents a339ac1 + 3252403 commit 2bc34eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION_TAG: ${{ github.ref_name }}
env:
AWS_S3_URL: ${{ secrets.ARTIFACTS_UPLOADER_S3_URL }}
AWS_ACCESS_KEY_ID: ${{ secrets.ARTIFACTS_UPLOADER_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ARTIFACTS_UPLOADER_SECRET_ACCESS_KEY }}
VERSION_TAG: ${{ github.ref_name }}
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ publishing {
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/commandk-dev/java-sdk")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
name = "S3"
url = uri(System.getenv("AWS_S3_URL") ?: "")
credentials(AwsCredentials::class.java) {
accessKey = System.getenv("AWS_ACCESS_KEY_ID") ?: ""
secretKey = System.getenv("AWS_SECRET_ACCESS_KEY") ?: ""
}
}
}
Expand Down

0 comments on commit 2bc34eb

Please sign in to comment.