Skip to content

Commit

Permalink
Last try to fix artifacts before calling for help
Browse files Browse the repository at this point in the history
  • Loading branch information
bmamlin committed Oct 4, 2024
1 parent 5453511 commit 128f14d
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,29 @@ jobs:
PROFILE: ${{ matrix.PROFILE }}
FILE_SUFFIX: ${{ matrix.FILE_SUFFIX }}
TWO_STEP: ${{ matrix.TWO_STEP }}
- name: Publish artifacts
- name: Archive build artifacts locally
run: |
mv openmrs_concepts_${{ matrix.FILE_SUFFIX }}.zip
mkdir -p ../artifacts
mv openmrs_concepts_${{ matrix.FILE_SUFFIX }}.zip ../artifacts/
merge:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download all artifacts from build jobs
run: |
mkdir artifacts
cp build/**/artifacts/*.zip ./artifacts/
- name: Merge all zip files into a single exports.zip
run: |
cd artifacts
zip ../exports.zip ./*.zip
- name: Clean up temporary artifacts
run: |
rm -rf ./artifacts
- name: Upload final merged artifact
uses: actions/upload-artifact@v4
with:
name: openmrs_concepts_${{ matrix.FILE_SUFFIX }}.zip
path: '*.zip'
- name: Merge artifacts
uses: actions/upload-artifact/merge@v4
with:
name: exports
pattern: openmrs_concepts_*.zip
delete-merged: true
name: exports.zip
path: exports.zip

0 comments on commit 128f14d

Please sign in to comment.