Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ld3 authored Sep 28, 2024
1 parent 7c4dcab commit d7d7774
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,18 @@ jobs:
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
if [ "${{ runner.os }}" == "Linux" ]; then
cd ${{ steps.strings.outputs.build-output-dir }}/install && tar -cvzf ../../dartomato-build-${{ matrix.os }}-${{ matrix.build_type }}-${TAG_NAME}.tar.gz *
cd ${{ steps.strings.outputs.build-output-dir }}/install && tar -cvzf ../../dartomato-build-${{ matrix.os }}-${{ matrix.build_type }}-${{ TAG_NAME }}.tar.gz *
else
pwsh -Command "Compress-Archive -Path '${{ steps.strings.outputs.build-output-dir }}/bin/*' -DestinationPath 'dartomato-build-${{ matrix.os }}-${{ matrix.build_type }}-${TAG_NAME}.zip'"
pwsh -Command "Compress-Archive -Path '${{ steps.strings.outputs.build-output-dir }}/bin/*' -DestinationPath 'dartomato-build-${{ matrix.os }}-${{ matrix.build_type }}-${{ TAG_NAME }}.zip'"
fi
shell: bash

- name: Upload Artifacts
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}-${{ matrix.build_type }}-${TAG_NAME}
path: build-${{ matrix.os }}-${{ matrix.build_type }}-${TAG_NAME}.${{ runner.os == 'Linux' && 'tar.gz' || 'zip' }}
name: build-${{ matrix.os }}-${{ matrix.build_type }}-${{ TAG_NAME }}
path: build-${{ matrix.os }}-${{ matrix.build_type }}-${{ TAG_NAME }}.${{ runner.os == 'Linux' && 'tar.gz' || 'zip' }}

deploy:
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit d7d7774

Please sign in to comment.