From e82bc3e31777ba2d077dc446537122311e79acb7 Mon Sep 17 00:00:00 2001 From: Arun Kumar Date: Fri, 25 Aug 2023 19:27:49 +0530 Subject: [PATCH] Github job config change --- .github/workflows/maven.yml | 14 +------------- .github/workflows/publish.yml | 22 +--------------------- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d1e423a..f2599fd 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -3,9 +3,8 @@ name: peppol-specifications Master Build on: [push] jobs: - master-branch-build: + build: runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' # run this job only for the master branch steps: - uses: actions/checkout@v2 - name: Set up JDK 11 @@ -15,14 +14,3 @@ jobs: - name: Build with Maven run: mvn -B --no-transfer-progress package - milestone-6-branch-build: - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/feature/milestone-6' # run this job only for the feature/milestone-6 branch - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Build with Maven - run: mvn -B --no-transfer-progress package \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5ba2062..5a696e2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,28 +3,8 @@ name: peppol-specifications Snapshot publish on: [push] jobs: - master-branch-publish: + build: runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' # run this job only for the master branch - steps: - - uses: actions/checkout@v2 - - name: Set up Maven Central Repository - uses: actions/setup-java@v1 - with: - java-version: 11 - server-id: ossrh - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD - - name: Publish package - run: mvn --batch-mode deploy - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} - - - milestone-6-branch-build: - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/feature/milestone-6' # run this job only for the feature/milestone-6 branch steps: - uses: actions/checkout@v2 - name: Set up Maven Central Repository