Skip to content

Commit

Permalink
ci: remove gitignore / gitkeep files from production build
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 authored Sep 2, 2023
1 parent 80c5037 commit 588928a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,15 @@ jobs:
run: |
echo "artifacts_path=$(realpath ../builds/${{ env.EVS_VERSION }})" >> $GITHUB_ENV
- name: 🧰 Create release zip
run: zip -r -q EVS-${{ env.EVS_VERSION }}.zip ${{ env.artifacts_path }}
run: |
find ${{ env.artifacts_path }} -type f \( -name ".gitignore" -o -name ".gitkeep" \) -exec rm -f {} \;
zip -r -q EVS-${{ env.EVS_VERSION }}.zip ${{ env.artifacts_path }}
- name: 📁 Archive artifacts
uses: actions/upload-artifact@v3
with:
name: EVS-build
path: ${{ env.artifacts_path }}
path: "EVS-${{ env.EVS_VERSION }}.zip"
if-no-files-found: error
- uses: ncipollo/[email protected]
name: 🤖 Create release on Github
if: github.event.inputs.create_release && contains(github.ref, 'main')
Expand Down

0 comments on commit 588928a

Please sign in to comment.