diff --git a/.github/workflows/action-artifact.yml b/.github/workflows/action-artifact.yml new file mode 100644 index 0000000..bcd2e8d --- /dev/null +++ b/.github/workflows/action-artifact.yml @@ -0,0 +1,41 @@ +# 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: | + ls + cd .. + ls + cd .. + ls + cd .. + ls + cd .. + ls + cd .. + ls + #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