Skip to content

Commit

Permalink
Add itch.io export
Browse files Browse the repository at this point in the history
  • Loading branch information
h4de5 committed Dec 11, 2021
1 parent 1b2e615 commit 6b3d936
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/godot-export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# sudo dpkg --add-architecture i386
sudo apt-get update
# Does not work due to win32 install
# breaks windows app, does not change icon
- name: install wine
id: wine_install
run: |
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Skip Android export
env:
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORExx }}
if: ${{ env.ANDROID_KEYSTORE == '' }}
run: |
crudini --del godot/export_presets.cfg $(for id in {0..10}; do crudini --get --format=lines godot/export_presets.cfg preset.$id platform 2> /dev/null ; done | grep Android | grep -o 'preset\.[0-9]*').options
Expand All @@ -54,21 +54,21 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v2
env:
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORExx }}
if: ${{ env.ANDROID_KEYSTORE != '' }}
with:
distribution: "temurin"
java-version: "17"

- name: Setup Android SDK
env:
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORExx }}
if: ${{ env.ANDROID_KEYSTORE != '' }}
uses: android-actions/setup-android@v2

- name: Prepare keystore
env:
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORExx }}
if: ${{ env.ANDROID_KEYSTORE != '' }}
run: |
echo "${{ secrets.ANDROID_KEYSTORE }}" >> android.keystore.asc
Expand Down Expand Up @@ -113,10 +113,14 @@ jobs:
FOLDER: /home/runner/.local/share/godot/builds/HTML5/ # The folder the action should deploy.

- name: Zip HTML Folder
run: zip -r /home/runner/.local/share/godot/builds/html5.zip /home/runner/.local/share/godot/builds/HTML5/
run: |
cd /home/runner/.local/share/godot/builds/
zip -r html5.zip HTML5/
- name: let me see those files
run: ls -lha /home/runner/.local/share/godot/builds
run: |
ls -lha /home/runner/.local/share/godot/builds
pwd
# Android
# HTML5
# LinuxX11
Expand All @@ -129,7 +133,7 @@ jobs:
CHANNEL: HTML
ITCH_GAME: ${{ secrets.ITCHIO_GAME }}
ITCH_USER: ${{ secrets.ITCHIO_USER }}
PACKAGE: /home/runner/.local/share/godot/builds/html5.zip
PACKAGE: html5.zip
if: ${{ env.ITCH_USER != '' }}
uses: josephbmanley/butler-publish-itchio-action@master

Expand Down Expand Up @@ -170,6 +174,6 @@ jobs:
ITCH_GAME: ${{ secrets.ITCHIO_GAME }}
ITCH_USER: ${{ secrets.ITCHIO_USER }}
PACKAGE: /home/runner/.local/share/godot/builds/Android/
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORExx }}
if: ${{ env.ITCH_USER != '' && env.ANDROID_KEYSTORE == '' }}
uses: josephbmanley/butler-publish-itchio-action@master
2 changes: 1 addition & 1 deletion godot/export_presets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PoolStringArray( )
application/icon="res://icon.ico"
application/icon=""
application/file_version=""
application/product_version=""
application/company_name="PanLab Production"
Expand Down

0 comments on commit 6b3d936

Please sign in to comment.