Add version to title

This commit is contained in:
Layla 2020-05-16 20:43:48 -04:00
parent 8b93f60aa0
commit 3dfff8793c
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31
3 changed files with 21 additions and 7 deletions

View File

@ -26,13 +26,6 @@ jobs:
else
echo "::set-env name=EXPORT_NAME::the-connection"
fi
- name: Build
id: build
uses: josephbmanley/build-godot-action@v1.4.0
with:
name: ${{ env.EXPORT_NAME }}
preset: ${{ matrix.platform }}
projectDir: client
- id: get_tag
name: Get Tag
env:
@ -41,6 +34,14 @@ jobs:
run: |
TAG=$(jq --raw-output '.release.tag_name' $GITHUB_EVENT_PATH)
echo ::set-output name=TAG::$TAG
echo $TAG > client/VERSION.txt
- name: Build
id: build
uses: josephbmanley/build-godot-action@v1.4.0
with:
name: ${{ env.EXPORT_NAME }}
preset: ${{ matrix.platform }}
projectDir: client
- name: Push to Itch
uses: josephbmanley/butler-publish-itchio-action@v1.0.1
env:

Binary file not shown.

View File

@ -0,0 +1,13 @@
extends Label
onready var file = 'res://VERSION.txt'
func _ready():
var f = File.new()
if f.file_exists(file):
f.open(file, File.READ)
if not f.eof_reached():
text = f.get_line()
f.close()
else:
text = "Custom Build"