Skip to content

Commit cca64a3

Browse files
authored
Merge pull request #11 from endlessm/push-qtozlqwsozvz
Publish new versions with GitHub Actions
2 parents aea85f4 + 5f466f5 commit cca64a3

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
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
7+
8+
# Exclude artwork sources
9+
/asset-sources export-ignore

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
2+
# Set update schedule for GitHub Actions
3+
4+
version: 2
5+
updates:
6+
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
# Check for updates to GitHub Actions every week
11+
interval: "weekly"
+21
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

+14
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)