Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
salopeknet committed Jun 10, 2024
1 parent 6370ca8 commit f00ed0d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,31 +74,33 @@ jobs:
onefile: false
output-file: ${{github.event.inputs.myname}}

- if: runner.os == 'macOS'
- name: Make executable & compress TAR for macOS
if: runner.os == 'macOS'
uses: thedoctor0/[email protected]
with:
type: "tar"
command: "chmod +x build/${{github.event.inputs.myname}}.dist/${{github.event.inputs.myname}} && mv build/${{github.event.inputs.myname}}.dist ${{github.event.inputs.myname}}"
path: "${{github.event.inputs.myname}}"
filename: "${{github.event.inputs.myname}}-${{runner.os}}.tar.gz"

- if: runner.os == 'Windows'
- name: Compress ZIP for Windows
if: runner.os == 'Windows'
uses: thedoctor0/[email protected]
with:
type: "zip"
command: "mv build/${{github.event.inputs.myname}}.dist ${{github.event.inputs.myname}}"
path: "${{github.event.inputs.myname}}"
filename: "${{github.event.inputs.myname}}-${{runner.os}}.zip"

- if: runner.os == 'Linux'
- name: Make executable & compress TAR for Linux
if: runner.os == 'Linux'
uses: thedoctor0/[email protected]
with:
type: "tar"
command: "chmod +x build/${{github.event.inputs.myname}}.dist/${{github.event.inputs.myname}} && mv build/${{github.event.inputs.myname}}.dist ${{github.event.inputs.myname}}"
path: "${{github.event.inputs.myname}}"
filename: "${{github.event.inputs.myname}}-${{runner.os}}.tar.gz"


- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit f00ed0d

Please sign in to comment.