Skip to content

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
  • Loading branch information
IceCream-QAQ committed Aug 28, 2024
1 parent d24a398 commit 530f0c3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: deploy

on:
push:
branches:
- deploy

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: ./gradlew publish
env:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ subprojects {
val releasesRepoUrl = "https://maven.icecreamqaq.com/repository/maven-releases/"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)


credentials {
username = ""
password = ""
System.getenv("MAVEN_USER")?.let { username = it }
System.getenv("MAVEN_TOKEN")?.let { password = it }
}
}
}
Expand Down

0 comments on commit 530f0c3

Please sign in to comment.