-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* workflow update * workflow update * remove cache from release
- Loading branch information
Showing
3 changed files
with
48 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Create Taskit Release | ||
name: Taskit Release Build | ||
|
||
on: | ||
push: | ||
|
@@ -21,30 +21,38 @@ jobs: | |
contents: write | ||
steps: | ||
- name: Checkout Taskit | ||
uses: actions/checkout@v3 | ||
- name: Checkout Util | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: HHS/ASPR-ms-util | ||
path: util | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: maven | ||
|
||
- name: Get Util Version | ||
run: | | ||
echo "util_version=v$(mvn help:evaluate -Dexpression=util.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV" | ||
- name: Checkout Util | ||
uses: actions/checkout@v4 | ||
with: | ||
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 Taskit | ||
run: mvn clean install -Prelease --file pom.xml | ||
- name: Get Version | ||
|
||
- name: Get Taskit Version | ||
run: | | ||
echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV" | ||
- name: Make Release | ||
uses: ncipollo/release-action@v1 | ||
- name: Make Taskit Release | ||
uses: ncipollo/[email protected] | ||
with: | ||
artifacts: "core/target/core-${{ env.version }}.jar,core/target/core-${{ env.version }}-sources.jar,core/target/core-${{ env.version }}-javadoc.jar, | ||
protobuf/target/protobuf-${{ env.version }}.jar,protobuf/target/protobuf-${{ env.version }}-sources.jar,protobuf/target/protobuf-${{ env.version }}-javadoc.jar" | ||
artifacts: "core/target/core-${{ env.version }}*.jar,protobuf/target/protobuf-${{ env.version }}*.jar" | ||
prerelease: ${{ endsWith(env.version, '-SNAPSHOT') || contains(env.version, '-RC') }} | ||
name: "v${{ env.version }}" | ||
tag: "v${{ env.version }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters