Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial CI workflow. #3

Merged
merged 3 commits into from
Dec 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
on:
push:
branches:
- master

jobs:
export:
name: export executables
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: create executables
uses: firebelley/[email protected]
env:
GODOT_MONO_VERSION: 3.2.2
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/${{GODOT_MONO_VERSION}}/mono/Godot_v${{GODOT_MONO_VERSION}}-stable_mono_linux_headless_64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/${{GODOT_MONO_VERSION}}/mono/Godot_v${{GODOT_MONO_VERSION}}-stable_mono_export_templates.tpz
relative_project_path: ./
use_preset_export_path: true
archive_export_output: true
create_release: true
base_version: 0.0.1
- name: save executables
uses: actions/upload-artifact@v2
with:
name: executables
path: build
deploy:
name: deploy executables to itch.io
needs: export
runs-on: ubuntu-latest
strategy:
matrix:
platform: [mac, windows, linux]
steps:
- name: checkout code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: download executables
uses: actions/download-artifact@v2
with:
name: executables
- name: Show downloaded executables directory structure
run: ls -R
working-directory: build
- name: deploy ${{ matrix.platform }} executable to itch.io
uses: josephbmanley/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: ${{ matrix.platform }}
ITCH_GAME: coa
ITCH_USER: forerunnergames
PACKAGE: build/${{ matrix.platform }}
VERSION: ${{ github.event.release.tag_name }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
!*.csproj
!*.sln
.import/
*.translation
.mono/
data_*/
mono_crash.*
14 changes: 8 additions & 6 deletions Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ public void _OnClimbingReadyTimerTimeout()
_isPreparingToClimbUp = false;
}

public override void _UnhandledInput (InputEvent @event)
{
if (!(@event is InputEventKey eventKey)) return;

if (eventKey.IsActionReleased ("use_item")) _isScrapingCliff = false;
else if (eventKey.IsActionReleased ("show_text")) _label.Visible = !_label.Visible;
}

private void Run()
{
PrintLine ("IsAnyHorizontalArrowPressed(): " + IsAnyHorizontalArrowPressed());
Expand Down Expand Up @@ -210,12 +218,6 @@ private bool IsMovingUp()
return _velocity.y + VelocityEpsilon < 0.0f;
}

public override void _UnhandledInput (InputEvent @event)
{
if (!(@event is InputEventKey eventKey) || !eventKey.IsActionReleased ("use_item")) return;
_isScrapingCliff = false;
}

private void Climb()
{
if (ShouldPrepareToClimbUp()) PrepareToClimbUp();
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[![master](https://github.com/forerunnergames/coa/workflows/CI/badge.svg)](https://github.com/forerunnergames/coa/actions)
[![pull request](https://github.com/forerunnergames/coa/workflows/CI/badge.svg?event=pull_request)](https://github.com/forerunnergames/coa/actions)
106 changes: 106 additions & 0 deletions export_presets.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
[preset.0]

name="Windows Desktop"
platform="Windows Desktop"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="build/windows/coa.exe"
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""

[preset.0.options]

texture_format/bptc=false
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
binary_format/embed_pck=false
custom_template/release=""
custom_template/debug=""
codesign/enable=false
codesign/identity=""
codesign/password=""
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PoolStringArray( )
application/icon=""
application/file_version=""
application/product_version=""
application/company_name="Forerunner Games"
application/product_name="Cliffs of Akaia"
application/file_description=""
application/copyright="Copyright © 2020 Forerunner Games, LLC. All rights reserved."
application/trademarks=""

[preset.1]

name="Mac OSX"
platform="Mac OSX"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="build/mac/coa.dmg"
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""

[preset.1.options]

custom_template/debug=""
custom_template/release=""
application/name="Cliffs of Akaia"
application/info="Made with Godot Engine"
application/icon=""
application/identifier="com.forererunnergames.coa"
application/signature=""
application/short_version=""
application/version=""
application/copyright="Copyright © 2020 Forerunner Games, LLC. All rights reserved."
display/high_res=false
privacy/camera_usage_description=""
privacy/microphone_usage_description=""
codesign/enable=false
codesign/identity=""
codesign/timestamp=true
codesign/hardened_runtime=true
codesign/entitlements=""
codesign/custom_options=PoolStringArray( )
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false

[preset.2]

name="Linux/X11"
platform="Linux/X11"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="build/linux/coa.x86_64"
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""

[preset.2.options]

texture_format/bptc=false
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
binary_format/embed_pck=false
custom_template/release=""
custom_template/debug=""
1 change: 1 addition & 0 deletions main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ shape = SubResource( 28 )
[node name="DebuggingText" type="RichTextLabel" parent="Player" groups=[
"Player",
]]
visible = false
margin_left = 72.0
margin_top = -192.0
margin_right = 456.0
Expand Down
5 changes: 5 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ use_item={
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":69,"unicode":0,"echo":false,"script":null)
]
}
show_text={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":84,"unicode":0,"echo":false,"script":null)
]
}

[layer_names]

Expand Down