Skip to content

Commit

Permalink
Update workflows (#3)
Browse files Browse the repository at this point in the history
* Update create_release_on_tag.yml

* Update dev-pre-mavencentral.yml

* Update dev-pre-mavencentral.yml

* Update create_release_on_tag.yml

* Update dev-pre-mavencentral.yml

* Update create_release_on_tag.yml
  • Loading branch information
bischoffz committed Oct 25, 2023
1 parent f543c2a commit da0c33b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/create_release_on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
push:
tags:
- 'v*'
branches: ["main_temp"]
branches: ["main"]

jobs:
create-release:
Expand All @@ -26,15 +26,29 @@ jobs:
uses: actions/checkout@v3
with:
repository: HHS/ASPR-ms-taskit
path: taskit
- name: Checkout Util
uses: actions/checkout@v3
with:
repository: HHS/ASPR-ms-util
path: util
- name: Checkout GCM
uses: actions/checkout@v3
with:
repository: HHS/ASPR-8
path: gcm
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build Taskit
run: mvn clean install -DskipTests --file util/pom.xml
- name: Build Taskit
run: mvn clean install -DskipTests --file taskit/pom.xml
- name: Build GCM
run: mvn clean install -DskipTests --file gcm/gcm/pom.xml
- name: Build GCM Taskit
run: mvn clean install -Prelease --file protobuf/pom.xml
- name: Get Version
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/dev-pre-mavencentral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- '**.xml'
- '**.java'
pull_request:
branches: [ "dev_temp", "main_temp" ]
branches: [ "dev", "main" ]

jobs:
build:
Expand All @@ -28,14 +28,28 @@ jobs:
with:
repository: HHS/ASPR-ms-taskit
path: taskit
- name: Checkout Util
uses: actions/checkout@v3
with:
repository: HHS/ASPR-ms-util
path: util
- name: Checkout Util
uses: actions/checkout@v3
with:
repository: HHS/ASPR-8
path: gcm
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build Util
run: mvn clean install -DskipTests --file util/pom.xml
- name: Build Taskit
run: mvn clean install -DskipTests --file taskit/pom.xml
- name: Build GCM
run: mvn clean install -DskipTests --file gcm/gcm/pom.xml
- name: Build GCM Taskit
run: mvn clean install --file protobuf/pom.xml

Expand Down

0 comments on commit da0c33b

Please sign in to comment.