Skip to content

Commit

Permalink
Changes publishing repository to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeshanti committed Aug 10, 2023
1 parent a339ac1 commit 9fc25f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build and publish the Java SDK
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # v0.0.1 - this syntax of tags is supported
on: [push]
# push:
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+*' # v0.0.1 - this syntax of tags is supported

jobs:
build-and-publish-java-sdk:
Expand All @@ -23,5 +23,7 @@ jobs:
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION_TAG: ${{ github.ref_name }}
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 }}
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ 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")
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 9fc25f7

Please sign in to comment.