Skip to content

Commit

Permalink
chore(ci): also publish to iDrive E2 (S3 compatible)
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWQ-monad committed Jun 14, 2024
1 parent 1efb1d3 commit d97b88d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}

- name: Publish Release
uses: softprops/action-gh-release@v1
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,13 @@ publishing {
password = System.getenv("GITHUB_TOKEN")
}
}

maven {
url = 's3://imyvm-maven-repository'
credentials(AwsCredentials) {
accessKey = System.getenv("S3_ACCESS_KEY_ID")
secretKey = System.getenv("S3_SECRET_ACCESS_KEY")
}
}
}
}
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G

# Publish to iDrive E2
systemProp.org.gradle.s3.endpoint=https://v8j1.or1.idrivee2-63.com

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.21
Expand Down

0 comments on commit d97b88d

Please sign in to comment.