Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard authored Mar 19, 2024
1 parent 0e77505 commit 7695f21
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,25 @@ jobs:
chmod +x butler
./butler -V
- name: Upload to itch.io
- name: Zip Linux Build for Release
if: startsWith(github.ref, 'refs/tags/')
env:
BUTLER_API_KEY: ${{ secrets.ITCHIO_API_KEY }}
run: |
./butler push ./bin/ExportLinux/Unearth rainlizard/unearth:linux --userversion ${{ steps.version_info.outputs.FULL_VERSION }}
./butler push ./bin/ExportWindows/Unearth rainlizard/unearth:windows --userversion ${{ steps.version_info.outputs.FULL_VERSION }}
cd ./bin/
zip -r unearth-${{ steps.version_info.outputs.FULL_VERSION }}-linux.zip ExportLinux/
- name: Zip Linux Build for Release
- name: Zip Windows Build for Release
if: startsWith(github.ref, 'refs/tags/')
run: |
cd ./bin/ExportLinux/
zip -r ../Unearth-${{ steps.version_info.outputs.FULL_VERSION }}-linux.zip ./
cd ./bin/
zip -r unearth-${{ steps.version_info.outputs.FULL_VERSION }}-windows.zip ExportWindows/
- name: Zip Windows Build for Release
- name: Upload to itch.io
if: startsWith(github.ref, 'refs/tags/')
env:
BUTLER_API_KEY: ${{ secrets.ITCHIO_API_KEY }}
run: |
cd ./bin/ExportWindows/
zip -r ../Unearth-${{ steps.version_info.outputs.FULL_VERSION }}-windows.zip ./
./butler push ./bin/unearth-${{ steps.version_info.outputs.FULL_VERSION }}-linux.zip rainlizard/unearth:linux --userversion ${{ steps.version_info.outputs.FULL_VERSION }}
./butler push ./bin/unearth-${{ steps.version_info.outputs.FULL_VERSION }}-windows.zip rainlizard/unearth:windows --userversion ${{ steps.version_info.outputs.FULL_VERSION }}
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -119,7 +119,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/Unearth-${{ steps.version_info.outputs.FULL_VERSION }}-linux.zip
asset_path: ./bin/unearth-${{ steps.version_info.outputs.FULL_VERSION }}-linux.zip
asset_name: unearth-${{ steps.version_info.outputs.FULL_VERSION }}-linux.zip
asset_content_type: application/zip

Expand All @@ -130,6 +130,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/Unearth-${{ steps.version_info.outputs.FULL_VERSION }}-windows.zip
asset_path: ./bin/unearth-${{ steps.version_info.outputs.FULL_VERSION }}-windows.zip
asset_name: unearth-${{ steps.version_info.outputs.FULL_VERSION }}-windows.zip
asset_content_type: application/zip

0 comments on commit 7695f21

Please sign in to comment.