Skip to content

Commit

Permalink
CI with invalid characters fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fruchtzwerg94 committed Dec 18, 2023
1 parent 07ac7ac commit 3cc9966
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,17 @@ jobs:
tar -xf deploy/plantuml-jlatexmath.zip -C deploy
Remove-Item deploy/plantuml-jlatexmath.zip
- name: Set artifact name
# Replace every invalid file name character
run: |
$artifact_name="PlantUmlViewer_${{ github.ref_name }}.${{ github.sha }}_${{ matrix.build_platform }}"
$illegal_chars = [string]::join('',([System.IO.Path]::GetInvalidFileNameChars())) -replace '\\','\\'
$artifact_name=($artifact_name -replace "[$illegal_chars]", '-')
echo "ARTIFACT_NAME=$artifact_name" >> $env:GITHUB_ENV
- name: Create artifact
if: matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: PlantUmlViewer_${{ github.ref_name }}.${{ github.sha }}_${{ matrix.build_platform }}
name: ${{ env.ARTIFACT_NAME }}
path: deploy/

0 comments on commit 3cc9966

Please sign in to comment.