Add version to title
This commit is contained in:
parent
8b93f60aa0
commit
3dfff8793c
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@ -26,13 +26,6 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "::set-env name=EXPORT_NAME::the-connection"
|
echo "::set-env name=EXPORT_NAME::the-connection"
|
||||||
fi
|
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
|
- id: get_tag
|
||||||
name: Get Tag
|
name: Get Tag
|
||||||
env:
|
env:
|
||||||
@ -41,6 +34,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
TAG=$(jq --raw-output '.release.tag_name' $GITHUB_EVENT_PATH)
|
TAG=$(jq --raw-output '.release.tag_name' $GITHUB_EVENT_PATH)
|
||||||
echo ::set-output name=TAG::$TAG
|
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
|
- name: Push to Itch
|
||||||
uses: josephbmanley/butler-publish-itchio-action@v1.0.1
|
uses: josephbmanley/butler-publish-itchio-action@v1.0.1
|
||||||
env:
|
env:
|
||||||
|
Binary file not shown.
13
client/Scripts/Component/VersionDisplay.gd
Normal file
13
client/Scripts/Component/VersionDisplay.gd
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user