publish artifacts #2
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
# 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 |