Merge pull request #13 from EdwinBetanc0urt/bugfix/ci-with-public-pac… #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Gradle | |
# This file was contributed by ysenih@erpya.com from ERP Consultores y Asociados, C.A | |
# This file was contributed by EdwinBetanc0urt@outlook.com https://github.com/EdwinBetanc0urt | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
# Add support to default build | |
name: Continuous Integration with Gradle | |
on: | |
push: | |
branches: | |
- '*' # matches every branch that doesn't contain a '/' | |
- '*/*' # matches every branch containing a single '/' | |
- '**' # matches every branch | |
paths-ignore: | |
- README.md | |
- README.es.md | |
pull_request: | |
branches: | |
- main | |
- master | |
- develop | |
- experimental | |
- bugfix/** | |
- hotfix/** | |
- feature/** | |
paths-ignore: | |
- README.md | |
- README.es.md | |
jobs: | |
build-ci: | |
name: Build Template | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set up Java JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-package: 'jdk' | |
java-version: 11 | |
architecture: x64 | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
env: | |
GITHUB_DEPLOY_USER: ${{ github.actor }} | |
GITHUB_DEPLOY_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_DEPLOY_REPOSITORY: ${{ secrets.DEPLOY_REPOSITORY }} | |
ORG_GRADLE_PROJECT_deployUsername: ${{ secrets.DEPLOY_USER }} | |
ORG_GRADLE_PROJECT_deployToken: ${{ secrets.DEPLOY_TOKEN }} | |
ORG_GRADLE_PROJECT_deplyRepository: ${{ secrets.DEPLOY_REPOSITORY }} | |
with: | |
gradle-version: 8.0.2 | |
arguments: build | |
- name: Upload descriptor file artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: adempiere-report-engine-service.dsc | |
path: build/descriptors/adempiere-report-engine-service.dsc | |
retention-days: 1 |