Skip to content

publish artifacts

publish artifacts #2

# 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: |
cd ..
#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