-
-
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.
- Loading branch information
1 parent
93d8c88
commit 2dc74b6
Showing
2 changed files
with
46 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build DEV Jars | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_dev_jars: | ||
name: Build DEV jars | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '8' | ||
- name: Build with Gradle | ||
run: | | ||
./gradlew jar snapshotVersion | ||
git_hash=$(git rev-parse --short "$GITHUB_SHA") | ||
echo "git_hash=$git_hash" >> $GITHUB_ENV | ||
echo "snapshotVersion=$(cat build/versions/snapshot.txt)" >> $GITHUB_ENV | ||
echo "artifactPath=$(pwd)/build/libs" >> $GITHUB_ENV | ||
- name: Upload Plugin jar | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: SimpleJoinMessage-${{ env.snapshotVersion }}-${{ env.git_hash }}.jar | ||
path: ${{ env.artifactPath }}/SimpleJoinMessage-${{ env.snapshotVersion }}.jar |
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