Skip to content

Commit

Permalink
Stop extra explicit package and simply use as deploy folder
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveyJonesBitPail committed Sep 4, 2024
1 parent e8ffe9c commit a7e08bf
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,28 @@ jobs:
shell: bash
run: |
mkdir release
name="CZICheck-linux-x64-$(git describe --always)"
mkdir "release/${name}"
cd ./build/CZICheck
zip -r ./../../CZICheck.zip CZICheck THIRD_PARTY_LICENSES.txt
cp "CZICheck" "./../../release/"
cp "THIRD_PARTY_LICENSES.txt" "./../../release/"
cd ../..
name="CZICheck-linux-x64-$(git describe --always).zip"
mv -v ./CZICheck.zip "release/${name}"
echo "artifactName=${name};artifactPath=release/${name}" >> "$GITHUB_ENV"
- name: Package
if: ${{ (matrix.config.os == 'windows-latest') }}
shell: bash
run: |
mkdir release
7z a -r CZICheck.zip "./build/CZICheck/${{env.BUILD_TYPE}}/*.exe" "./build/CZICheck//THIRD_PARTY_LICENSES.txt"
name="CZICheck-windows-win64-$(git describe --always).zip"
mv -v ./CZICheck.zip "release/${name}"
name="CZICheck-windows-win64-$(git describe --always)"
mkdir "release/${name}"
cp "./build/CZICheck/${{env.BUILD_TYPE}}/*.exe" "release/${name}/"
cp "./build/CZICheck/THIRD_PARTY_LICENSES.txt" "release/${name}/"
echo "artifactName=${name};artifactPath=release/${name}" >> "$GITHUB_ENV"
- name: Upload artifacts
if: matrix.build == 'Release'
uses: actions/upload-artifact@v4
with:
path: release
name: CZICheck_${{ matrix.config.osfamily }}-x64
path: ${{ env.artifactPath }}/
name: ${{ env.artifactName }}

0 comments on commit a7e08bf

Please sign in to comment.