Skip to content

Commit

Permalink
publish github workflow artifacts
Browse files Browse the repository at this point in the history
  • 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.
30 changes: 30 additions & 0 deletions .github/workflows/action-artifact.yml
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

0 comments on commit fd1db57

Please sign in to comment.