Skip to content

Commit 423120c

Browse files
authored
Provide GitHub action (#240)
1 parent ad52508 commit 423120c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

action.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Godot toolkit install
2+
author: Pawel Lampe
3+
description: Install the Godot toolkit
4+
branding:
5+
icon: activity
6+
color: blue
7+
8+
inputs:
9+
version:
10+
description: Version of the gdtoolkit to install
11+
default: "4.*"
12+
13+
runs:
14+
using: composite
15+
steps:
16+
- id: create-requirements-if-not-exists
17+
run: |
18+
if [ ! -f requirements.txt ]; then
19+
echo "gdtoolkit==${{inputs.version}}" > requirements.txt
20+
fi
21+
shell: bash
22+
23+
- id: install-python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: "3.x"
27+
cache: "pip"
28+
29+
- id: upgrade-setuptools
30+
run: pip install --upgrade setuptools
31+
shell: bash
32+
33+
- id: install-gdtoolkit
34+
run: pip install gdtoolkit==${{inputs.version}}
35+
shell: bash

0 commit comments

Comments
 (0)