Skip to content

Commit

Permalink
update archive names
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed May 22, 2024
1 parent 0dacb7e commit 8cd4ab9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,25 @@ runs:

- name: Create artifact
run: |
mkdir ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}
if [ "${{ runner.os }}" = "Windows" ]; then
tar czf ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}.tar.gz ${{ env.EXEFILE }}.exe
cp ${{ env.EXEFILE }}.exe ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}
else
tar czf ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}.tar.gz ${{ env.EXEFILE }}
cp ${{ env.EXEFILE }} ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}
fi
# if [ "${{ runner.os }}" = "Windows" ]; then
# #tar czf ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}.tar.gz
# else
# tar czf ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}.tar.gz ${{ env.EXEFILE }}
# fi
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}

- name: Upload Artifact
uses: 'actions/upload-artifact@v1'
with:
name: ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}.tar.gz
path: ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}.tar.gz
name: ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}
path: ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}

branding:
icon: 'package'
Expand Down

0 comments on commit 8cd4ab9

Please sign in to comment.