Skip to content

Commit

Permalink
Update dev-pre-mavencentral.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bischoffz committed Feb 4, 2024
1 parent 45eedf5 commit abaa180
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/dev-pre-mavencentral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,38 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout GCM Taskit
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Get Versions
run: |
echo "taskit_version=$(mvn help:evaluate -Dexpression=taskit-protobuf.version -q -DforceStdout --file protobuf/pom.xml)" >> "$GITHUB_ENV"
echo "gcm_version=$(mvn help:evaluate -Dexpression=gcm.version -q -DforceStdout --file protobuf/pom.xml)" >> "$GITHUB_ENV"
- name: Checkout Taskit
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: HHS/ASPR-ms-taskit
path: taskit
- name: Checkout Util
uses: actions/checkout@v3
with:
repository: HHS/ASPR-ms-util
path: util
ref: ${{ (endsWith(env.taskit_version, 'SNAPSHOT') && 'dev') || env.taskit_version }}
- name: Checkout GCM
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: HHS/ASPR-8
path: gcm
- name: Set up JDK 17
uses: actions/setup-java@v3
ref: ${{ (endsWith(env.gcm_version, 'SNAPSHOT') && 'dev') || env.gcm_version }}
- name: Get Util Version
run: |
echo "util_version=v$(mvn help:evaluate -Dexpression=util.version -q -DforceStdout --file gcm/gcm/pom.xml)" >> "$GITHUB_ENV"
- name: Checkout Util
uses: actions/checkout@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
repository: HHS/ASPR-ms-util
path: util
ref: ${{ (endsWith(env.util_version, 'SNAPSHOT') && 'dev') || env.util_version }}
- name: Build Util
run: mvn clean install -DskipTests --file util/pom.xml
- name: Build GCM
Expand Down

0 comments on commit abaa180

Please sign in to comment.