diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 629fc329c..51cfffe76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,34 +55,19 @@ jobs: makensis ./installer/pixelorama_loc.nsi mkdir ./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 🎮 run: | 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/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: name: Linux Export 🐧 @@ -124,35 +109,19 @@ jobs: tar zcvf linux-64bit.tar.gz linux-64bit tar zcvf linux-32bit.tar.gz linux-32bit 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 🎮 run: | 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-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: name: Create Pixelorama pack data for Clickable @@ -264,6 +233,12 @@ jobs: run: codesign -s - --force --deep ./build/mac/Pixelorama.app - name: Create DMG archive 🔧 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 🚀 uses: svenstaro/upload-release-action@v2 with: @@ -272,12 +247,6 @@ jobs: asset_name: ${{env.EXPORT_NAME}}[Mac].dmg tag: ${{env.TAG}} 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: name: Web Export 🌐