mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Use file_glob and put the upload release asset step after itch.io uploading in release.yml
This commit is contained in:
parent
50885b8769
commit
3246ce79dd
75
.github/workflows/release.yml
vendored
75
.github/workflows/release.yml
vendored
|
@ -55,34 +55,19 @@ jobs:
|
||||||
makensis ./installer/pixelorama_loc.nsi
|
makensis ./installer/pixelorama_loc.nsi
|
||||||
mkdir ./build/installer
|
mkdir ./build/installer
|
||||||
mv ./installer/${EXPORT_NAME}_${TAG}_setup.exe ./build/installer
|
mv ./installer/${EXPORT_NAME}_${TAG}_setup.exe ./build/installer
|
||||||
- name: Upload 64-bit Release Asset 🚀
|
|
||||||
uses: svenstaro/upload-release-action@v2
|
|
||||||
with:
|
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
file: ./build/windows-64bit.zip
|
|
||||||
asset_name: ${{env.EXPORT_NAME}}[Windows-64bit].zip
|
|
||||||
tag: ${{env.TAG}}
|
|
||||||
overwrite: true
|
|
||||||
- name: Upload 32-bit Release Asset 🚀
|
|
||||||
uses: svenstaro/upload-release-action@v2
|
|
||||||
with:
|
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
file: ./build/windows-32bit.zip
|
|
||||||
asset_name: ${{env.EXPORT_NAME}}[Windows-32bit].zip
|
|
||||||
tag: ${{env.TAG}}
|
|
||||||
overwrite: true
|
|
||||||
- name: Upload installer Release Asset 🚀
|
|
||||||
uses: svenstaro/upload-release-action@v2
|
|
||||||
with:
|
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
file: ./build/installer/${{env.EXPORT_NAME}}_${{env.TAG}}_setup.exe
|
|
||||||
tag: ${{env.TAG}}
|
|
||||||
overwrite: true
|
|
||||||
- name: Upload Release Assets to itch.io 🎮
|
- name: Upload Release Assets to itch.io 🎮
|
||||||
run: |
|
run: |
|
||||||
butler push ./build/windows-64bit ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-64 --userversion ${{env.TAG}}
|
butler push ./build/windows-64bit ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-64 --userversion ${{env.TAG}}
|
||||||
butler push ./build/windows-32bit ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-32 --userversion ${{env.TAG}}
|
butler push ./build/windows-32bit ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-32 --userversion ${{env.TAG}}
|
||||||
butler push ./build/installer ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-installer --userversion ${{env.TAG}}
|
butler push ./build/installer ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:windows-installer --userversion ${{env.TAG}}
|
||||||
|
- name: Upload Release Asset 🚀
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: ./build/*
|
||||||
|
tag: ${{env.TAG}}
|
||||||
|
overwrite: true
|
||||||
|
file_glob: true
|
||||||
|
|
||||||
export-linux:
|
export-linux:
|
||||||
name: Linux Export 🐧
|
name: Linux Export 🐧
|
||||||
|
@ -124,35 +109,19 @@ jobs:
|
||||||
tar zcvf linux-64bit.tar.gz linux-64bit
|
tar zcvf linux-64bit.tar.gz linux-64bit
|
||||||
tar zcvf linux-32bit.tar.gz linux-32bit
|
tar zcvf linux-32bit.tar.gz linux-32bit
|
||||||
tar zcvf linux-rpi4.tar.gz linux-rpi4
|
tar zcvf linux-rpi4.tar.gz linux-rpi4
|
||||||
- name: Upload 64-bit Release Asset 🚀
|
|
||||||
uses: svenstaro/upload-release-action@v2
|
|
||||||
with:
|
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
file: ./build/linux-64bit.tar.gz
|
|
||||||
asset_name: ${{env.EXPORT_NAME}}[Linux-64bit].tar.gz
|
|
||||||
tag: ${{env.TAG}}
|
|
||||||
overwrite: true
|
|
||||||
- name: Upload 32-bit Release Asset 🚀
|
|
||||||
uses: svenstaro/upload-release-action@v2
|
|
||||||
with:
|
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
file: ./build/linux-32bit.tar.gz
|
|
||||||
asset_name: ${{env.EXPORT_NAME}}[Linux-32bit].tar.gz
|
|
||||||
tag: ${{env.TAG}}
|
|
||||||
overwrite: true
|
|
||||||
- name: Upload Raspberry Pi 4 Release Asset
|
|
||||||
uses: svenstaro/upload-release-action@v2
|
|
||||||
with:
|
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
file: ./build/linux-rpi4.tar.gz
|
|
||||||
asset_name: ${{env.EXPORT_NAME}}[Linux-RPI4].tar.gz
|
|
||||||
tag: ${{env.TAG}}
|
|
||||||
overwrite: true
|
|
||||||
- name: Upload Release Assets to itch.io 🎮
|
- name: Upload Release Assets to itch.io 🎮
|
||||||
run: |
|
run: |
|
||||||
butler push ./build/linux-64bit.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-64 --userversion ${{env.TAG}}
|
butler push ./build/linux-64bit.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-64 --userversion ${{env.TAG}}
|
||||||
butler push ./build/linux-32bit.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-32 --userversion ${{env.TAG}}
|
butler push ./build/linux-32bit.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-32 --userversion ${{env.TAG}}
|
||||||
butler push ./build/linux-rpi4.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-rpi4 --userversion ${{env.TAG}}
|
butler push ./build/linux-rpi4.tar.gz ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:linux-rpi4 --userversion ${{env.TAG}}
|
||||||
|
- name: Upload Release Asset 🚀
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: ./build/linux-*.tar.gz
|
||||||
|
tag: ${{env.TAG}}
|
||||||
|
overwrite: true
|
||||||
|
file_glob: true
|
||||||
|
|
||||||
build_pck:
|
build_pck:
|
||||||
name: Create Pixelorama pack data for Clickable
|
name: Create Pixelorama pack data for Clickable
|
||||||
|
@ -264,6 +233,12 @@ jobs:
|
||||||
run: codesign -s - --force --deep ./build/mac/Pixelorama.app
|
run: codesign -s - --force --deep ./build/mac/Pixelorama.app
|
||||||
- name: Create DMG archive 🔧
|
- name: Create DMG archive 🔧
|
||||||
run: hdiutil create -srcfolder ./build/mac -fs HFS+ -volname Pixelorama ./build/mac/Pixelorama.dmg
|
run: hdiutil create -srcfolder ./build/mac -fs HFS+ -volname Pixelorama ./build/mac/Pixelorama.dmg
|
||||||
|
- name: Upload Release Assets to itch.io 🎮
|
||||||
|
run: |
|
||||||
|
curl -L -o butler.zip https://broth.itch.ovh/butler/darwin-amd64/LATEST/archive/default
|
||||||
|
unzip butler.zip
|
||||||
|
chmod +x butler
|
||||||
|
./butler push ./build/mac/Pixelorama.dmg ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:mac --userversion ${{env.TAG}}
|
||||||
- name: Upload Release Asset 🚀
|
- name: Upload Release Asset 🚀
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
|
@ -272,12 +247,6 @@ jobs:
|
||||||
asset_name: ${{env.EXPORT_NAME}}[Mac].dmg
|
asset_name: ${{env.EXPORT_NAME}}[Mac].dmg
|
||||||
tag: ${{env.TAG}}
|
tag: ${{env.TAG}}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
- name: Upload Release Assets to itch.io 🎮
|
|
||||||
run: |
|
|
||||||
curl -L -o butler.zip https://broth.itch.ovh/butler/darwin-amd64/LATEST/archive/default
|
|
||||||
unzip butler.zip
|
|
||||||
chmod +x butler
|
|
||||||
./butler push ./build/mac/Pixelorama.dmg ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:mac --userversion ${{env.TAG}}
|
|
||||||
|
|
||||||
export-web:
|
export-web:
|
||||||
name: Web Export 🌐
|
name: Web Export 🌐
|
||||||
|
|
Loading…
Reference in a new issue