Skip to content

Commit

Permalink
Merge pull request #6 from EdwinBetanc0urt/bugfix/ci-with-public-pack…
Browse files Browse the repository at this point in the history
…ages

fix: CI with public packages.
  • Loading branch information
yamelsenih authored Dec 9, 2024
2 parents 2f63308 + 14494bd commit a97110f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
env:
GITHUB_DEPLOY_USER: "${{ secrets.DEPLOY_USER }}"
GITHUB_DEPLOY_TOKEN: "${{ secrets.DEPLOY_TOKEN }}"
ORG_GRADLE_PROJECT_deployUsername: ${{ secrets.DEPLOY_USER }}
ORG_GRADLE_PROJECT_deployToken: ${{ secrets.DEPLOY_TOKEN }}
ORG_GRADLE_PROJECT_deplyRepository: ${{ secrets.DEPLOY_REPOSITORY }}
GITHUB_DEPLOY_USER: ${{ github.actor }}
GITHUB_DEPLOY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_DEPLOY_REPOSITORY: ${{ secrets.DEPLOY_REPOSITORY }}
with:
gradle-version: 8.0.2
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ jobs:
gradle-version: 8.0.2
arguments: createRelease
env:
GITHUB_DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
GITHUB_DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
ORG_GRADLE_PROJECT_deployUsername: ${{ secrets.DEPLOY_USER }}
ORG_GRADLE_PROJECT_deployToken: ${{ secrets.DEPLOY_TOKEN }}
ORG_GRADLE_PROJECT_deplyRepository: ${{ secrets.DEPLOY_REPOSITORY }}
GITHUB_DEPLOY_USER: ${{ github.actor }}
GITHUB_DEPLOY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_DEPLOY_REPOSITORY: ${{ secrets.DEPLOY_REPOSITORY }}

- name: Upload descriptor file artifact
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@
hs_err_pid*
/bin/
/.gradle/
/libs/
/dependences/
/build/
*.properties
*.properties
# skip folder dependencies
!dependencies/*.jar
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repositories {
// Adempiere GitHub Organization
url = 'https://maven.pkg.github.com/adempiere/adempiere'
credentials {
// project property, system properrty, enviroment variable
// project property, system property, enviroment variable
username = findProperty("deployUsername") ?: System.properties['deploy.user'] ?: System.getenv("GITHUB_DEPLOY_USER")
password = findProperty("deployToken") ?: System.properties['deploy.token'] ?: System.getenv("GITHUB_DEPLOY_TOKEN")
}
Expand Down

0 comments on commit a97110f

Please sign in to comment.