Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish github workflow artifacts #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/action-artifact.yml
Original file line number Diff line number Diff line change
@@ -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
Loading