Skip to content

Commit fbfe06b

Browse files
committed
Publish new versions with GitHub Actions
https://phabricator.endlessm.com/T35664
1 parent aea85f4 commit fbfe06b

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Normalize EOL for all files that Git considers text files.
22
* text=auto eol=lf
3+
4+
# Exclude GitHub Actions-related files from published asset
5+
/.github export-ignore
6+
/asset-template.json.hb export-ignore
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
release:
3+
types:
4+
- published
5+
6+
name: Push to Godot Asset Library
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
name: Push new release
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Push to Godot Asset Library
16+
uses: deep-entertainment/[email protected]
17+
with:
18+
username: ${{ secrets.GODOT_ASSET_LIBRARY_USERNAME }}
19+
password: ${{ secrets.GODOT_ASSET_LIBRARY_PASSWORD }}
20+
assetId: 3360
21+
assetTemplate: asset-template.json.hb

asset-template.json.hb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"title": "Block Coding Demos",
3+
"description": "These are demos for the Godot Block Coding Plugin. Intended to show the potential and find limitations on the plugin, in order to instruct its development.",
4+
"category_id": "10",
5+
"godot_version": "4.3",
6+
"version_string": "{{ context.release.name }}",
7+
"cost": "MIT",
8+
"support_level": "community",
9+
"download_provider": "GitHub",
10+
"download_commit": "{{ env.GITHUB_SHA }}",
11+
"browse_url": "{{ context.repository.html_url }}",
12+
"issues_url": "{{ context.repository.html_url }}/issues",
13+
"icon_url": "https://raw.githubusercontent.com/endlessm/godot-block-coding/refs/heads/main/icon.png"
14+
}

0 commit comments

Comments
 (0)