-
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
hgoswami1
authored and
hgoswami1
committed
Sep 4, 2024
1 parent
0f2b0f8
commit fd1db57
Showing
1 changed file
with
30 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 @@ | ||
# Publish GitHub workflow artifacts | ||
name: Publish GitHub Actions Artifacts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
|
||
archive-build-artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Step 1 - Create a temporary artifact downloads folder | ||
run: mkdir downloads | ||
|
||
- name: step 2 - Add artifacts to publish to the temp folder | ||
run: | | ||
#Build your Maven project | ||
mvn clean install | ||
#Copy the resulting JAR file to the downloads folder | ||
cp target/hbm-to-orm-converter-0.0.1.jar downloads/ | ||
- name: Step 3 - Use the Upload Artifact GitHub Action | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: hbm-to-orm-jar-for-download | ||
path: downloads |