Skip to content

Commit

Permalink
fix(build): inject maven secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubxity committed Oct 23, 2021
1 parent af22ec7 commit 98f7176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assemble publish --no-daemon
env:
MAVEN_REPO_USER: ${{ secrets.MAVEN_REPO_USER }}
MAVEN_REPO_PASS: ${{ secrets.MAVEN_REPO_PASS }}
- name: Set variables
id: vars
run: echo ::set-output name=version::${GITHUB_REF#refs/*\/dev/}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assemble publish --no-daemon
env:
MAVEN_REPO_USER: ${{ secrets.MAVEN_REPO_USER }}
MAVEN_REPO_PASS: ${{ secrets.MAVEN_REPO_PASS }}
- name: Set variables
id: vars
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
Expand Down

0 comments on commit 98f7176

Please sign in to comment.