Update test
Update test Update test Update test Update test
This commit is contained in:
parent
9acd6abd7d
commit
0fb921d27d
2 changed files with 7 additions and 11 deletions
6
.github/workflows/test_action.yml
vendored
6
.github/workflows/test_action.yml
vendored
|
@ -8,12 +8,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Extract branch name
|
|
||||||
shell: bash
|
|
||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
|
||||||
id: extract_branch
|
|
||||||
- name: Run Action
|
- name: Run Action
|
||||||
uses: josephbmanley/build-godot-actions@${{ steps.extract_branch.outputs.branch }}
|
uses: ./
|
||||||
with:
|
with:
|
||||||
name: test_project
|
name: test_project
|
||||||
preset: linux
|
preset: linux
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Install export templates
|
# Install export templates
|
||||||
wget https://downloads.tuxfamily.org/godotengine/3.1.1/Godot_v3.1.1-stable_export_templates.tpz --quiet
|
wget https://downloads.tuxfamily.org/godotengine/3.2/Godot_v3.2-stable_export_templates.tpz --quiet
|
||||||
mkdir ~/.cache
|
mkdir ~/.cache
|
||||||
mkdir -p ~/.config/godot
|
mkdir -p ~/.config/godot
|
||||||
mkdir -p ~/.local/share/godot/templates/3.1.1.stable
|
mkdir -p ~/.local/share/godot/templates/3.2.stable
|
||||||
unzip Godot_v3.1.1-stable_export_templates.tpz
|
unzip Godot_v3.2-stable_export_templates.tpz
|
||||||
mv templates/* ~/.local/share/godot/templates/3.1.1.stable
|
mv templates/* ~/.local/share/godot/templates/3.2.stable
|
||||||
rm -f Godot_v3.1.1-stable_export_templates.tpz
|
rm -f Godot_v3.2-stable_export_templates.tpz
|
||||||
|
|
||||||
if [ "$3" != "" ]
|
if [ "$3" != "" ]
|
||||||
then
|
then
|
||||||
|
@ -28,6 +28,6 @@ if [ "$4" = "true" ]
|
||||||
then
|
then
|
||||||
mkdir ~/package
|
mkdir ~/package
|
||||||
cd ~/build
|
cd ~/build
|
||||||
zip ~/package/artifact.zip ${SubDirectoryLocation:-"*"} -r
|
zip ~/package/artifact.zip ${SubDirectoryLocation:-"."} -r
|
||||||
echo ::set-output name=artifact::~/package/artifact.zip
|
echo ::set-output name=artifact::~/package/artifact.zip
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue