Skip to content

Commit

Permalink
make godot-version required and add godot-channel
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Aug 12, 2024
1 parent d87b403 commit 489d228
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ You can find the code in the `main` branch.
| project-name | true | | Name used in xcodebuild |
| apple-id-username | true | | Apple ID email |
| apple-id-password | true | | App specific password |
| godot-version | true | . | Godot Engine version. Supported are 4.x versions. Check versions [here](https://github.com/godotengine/godot-builds/releases) |
| godot-channel | false | stable | Godot Engine release channel (stable, beta, rc1, rc2, rc3...). Defaults to 'stable' Check release channels [here](https://github.com/godotengine/godot-builds/releases) |
| working-directory | false | . | Path to .project file |
| godot-version | false | 4.2.1 | Check versions [here](https://downloads.tuxfamily.org/godotengine/) |


### How to use
Use the 4.x tag
Expand All @@ -45,6 +47,7 @@ Use the 4.x tag
uses: dulvui/godot-ios-upload@v4
with:
project-name: FutsalManager
godot-version: 4.2.2
provision-profile-path: ~/Library/MobileDevice/Provisioning\ Profiles/build_pp.mobileprovision
apple-id-username: ${{ secrets.IOS_APPLE_ID_USERNAME }}
apple-id-password: ${{ secrets.IOS_APPLE_ID_PASSWORD }}
Expand Down
19 changes: 11 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ inputs:
required: false
default: '.'
godot-version:
description: 'Godot Engine version'
description: 'Godot Engine version. Supported are 4.x versions'
required: true
godot-channel:
description: 'Godot Engine release channel (${{ inputs.godot-channel}}, beta, rc1, rc2, rc3...). Defaults to ${{ inputs.godot-channel}}'
required: false
default: '4.2.2'
default: '${{ inputs.godot-channel}}'
project-name:
description: 'Project name used for xarchive building'
required: true
Expand Down Expand Up @@ -50,12 +53,12 @@ runs:
shell: bash
if: steps.cache-godot.outputs.cache-hit != 'true'
run: |
wget -q https://github.com/godotengine/godot/releases/download/${{ inputs.godot-version }}-stable/Godot_v${{ inputs.godot-version }}-stable_macos.universal.zip
wget -q https://github.com/godotengine/godot/releases/download/${{ inputs.godot-version }}-stable/Godot_v${{ inputs.godot-version }}-stable_export_templates.tpz
unzip Godot_v${{ inputs.godot-version }}-stable_macos.universal.zip
unzip Godot_v${{ inputs.godot-version }}-stable_export_templates.tpz
mkdir -p ~/Library/Application\ Support/Godot/export_templates/${{ inputs.godot-version }}.stable
mv templates/* ~/Library/Application\ Support/Godot/export_templates/${{ inputs.godot-version }}.stable
wget -q https://github.com/godotengine/godot-builds/releases/download/${{ inputs.godot-version }}-${{ inputs.godot-channel}}/Godot_v${{ inputs.godot-version }}-${{ inputs.godot-channel}}_macos.universal.zip
wget -q https://github.com/godotengine/godot-builds/releases/download/${{ inputs.godot-version }}-${{ inputs.godot-channel}}/Godot_v${{ inputs.godot-version }}-${{ inputs.godot-channel}}_export_templates.tpz
unzip Godot_v${{ inputs.godot-version }}-${{ inputs.godot-channel}}_macos.universal.zip
unzip Godot_v${{ inputs.godot-version }}-${{ inputs.godot-channel}}_export_templates.tpz
mkdir -p ~/Library/Application\ Support/Godot/export_templates/${{ inputs.godot-version }}.${{ inputs.godot-channel}}
mv templates/* ~/Library/Application\ Support/Godot/export_templates/${{ inputs.godot-version }}.${{ inputs.godot-channel}}
- name: Install coreutils for gtimeout
shell: bash
Expand Down

0 comments on commit 489d228

Please sign in to comment.