-
-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use github actions to publish artifacts (#2232)
- Loading branch information
1 parent
bea4e09
commit 8360f8f
Showing
1 changed file
with
33 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,33 @@ | ||
name: Upload Artifacts | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'src/main/**' | ||
- 'build.gradle.kts' | ||
- '.github/workflows/artifacts.yml' | ||
|
||
jobs: | ||
build: | ||
name: Build and Upload Artifacts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build Artifacts | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: build | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Artifacts | ||
path: build/libs/*.jar |