forked from Scony/godot-gdscript-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (30 loc) · 769 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Godot toolkit install
author: Pawel Lampe
description: Install the Godot toolkit
branding:
icon: activity
color: blue
inputs:
version:
description: Version of the gdtoolkit to install
default: "4.*"
runs:
using: composite
steps:
- id: create-requirements-if-not-exists
run: |
if [ ! -f requirements.txt ]; then
echo "gdtoolkit==${{inputs.version}}" > requirements.txt
fi
shell: bash
- id: install-python
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: "pip"
- id: upgrade-setuptools
run: pip install --upgrade setuptools
shell: bash
- id: install-gdtoolkit
run: pip install gdtoolkit==${{inputs.version}}
shell: bash