Skip to content

Commit

Permalink
Switch CI to Github for 2.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Jul 10, 2024
1 parent 7c21157 commit cf4ef67
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 145 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@
name: Java CI with Maven

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches: [ 2.0.x ]

jobs:
build:
name: Build Pull Request

runs-on: ubuntu-latest
if: ${{ github.repository == 'spring-projects/spring-guice' }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
run: ./mvnw -B package

37 changes: 37 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven Deploy

on:
push:
branches: [ 2.0.x ]

jobs:
build:
name: Build and Deploy On Push

runs-on: ubuntu-latest
if: ${{ github.repository == 'spring-projects/spring-guice' }}

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Deploy with Maven
env:
spring_username: ${{ secrets.ARTIFACTORY_USERNAME }}
spring_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
sonatype_username: ${{ secrets.SONATYPE_USERNAME }}
sonatype_password: ${{ secrets.SONATYPE_PASSWORD }}
signing_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
run: |
echo "${signing_key}" > private.asc
gpg --import --batch --no-tty private.asc
./mvnw -B deploy -s .mvn/settings.xml
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

131 changes: 0 additions & 131 deletions pipeline.yml

This file was deleted.

0 comments on commit cf4ef67

Please sign in to comment.