Skip to content

Commit

Permalink
Updated github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-kumar committed May 19, 2024
1 parent 4f090e9 commit f251f9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,8 @@ name: commons-certvalidator 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
uses: actions/setup-java@v1
with:
java-version: 11
- 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
Expand Down
25 changes: 2 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: commons-certvalidator 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
Expand All @@ -19,24 +18,4 @@ jobs:
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
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 }}

MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 comments on commit f251f9f

Please sign in to comment.