Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed May 22, 2024
1 parent 537e612 commit 6b5d174
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,17 @@ runs:

- name: Create artifact
run: |
echo "FILENAME=${{ env.EXEFILE }}${{ env.VERSION }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}" >> $GITHUB_ENV
FILENAME="${{ env.EXEFILE }}${{ env.VERSION }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}"
echo "FILENAME=$FILENAME" >> $GITHUB_ENV
mkdir ${{ env.FILENAME }}
mkdir $FILENAME
if [ "${{ runner.os }}" = "Windows" ]; then
cp ${{ env.EXEFILE }}.exe ${{ env.FILENAME }}
cp ${{ env.EXEFILE }}.exe $FILENAME
else
cp ${{ env.EXEFILE }} ${{ env.FILENAME }}
cp ${{ env.EXEFILE }} $FILENAME
fi
if [ "${{ inputs.release }}" = "true" ]; then
zip -r ${{ env.FILENAME }}.zip ${{ env.FILENAME }}
zip -r $FILENAME.zip $FILENAME
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}

- name: Upload Artifact (Normal)
Expand Down

0 comments on commit 6b5d174

Please sign in to comment.