Skip to content

Commit f128ffa

Browse files
Add workflow for csharp addon
1 parent d2d2093 commit f128ffa

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"title": "Character Controller C#",
3+
"description": "Modular Character Controller for Godot 4. \nIncludes FPS version with headbob and camera movement. \n(Walk, Crouch, Sprint, Swim and Fly Mode).\nC# Base on https://godotengine.org/asset-library/asset/1567",
4+
"category_id": "6",
5+
"godot_version": "4.1",
6+
"version_string": "{{ env.PLUGIN_VERSION }}",
7+
"cost": "MIT",
8+
"download_provider": "GitHub",
9+
"download_commit": "{{ env.GITHUB_SHA }}",
10+
"browse_url": "{{ context.repository.html_url }}",
11+
"issues_url": "{{ context.repository.html_url }}/issues",
12+
"icon_url": "https://raw.githubusercontent.com/expressobits/character-controller/4c41093cd0f010caa411819c679c6befbc5b3480/icon.svg"
13+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "Push CSharp Addon To Asset Lib"
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
plugin_version:
6+
description: 'Plugin version number:'
7+
required: true
8+
type: string
9+
default: '1.0.0'
10+
push:
11+
branches: [ csharp-addon ]
12+
13+
env:
14+
PLUGIN_VERSION: 0.0.1
15+
16+
jobs:
17+
18+
publish:
19+
# needs: [env-setup]
20+
runs-on: ubuntu-latest
21+
name: Publish new version to asset lib
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
27+
- name: set_plugin_version
28+
id: set_plugin_version
29+
run: |
30+
VERSION=$(grep version= addons/character-controller/plugin.cfg | cut -d "=" -f 2 | tr -d '"')
31+
echo "PLUGIN_VERSION=${VERSION}" >> $GITHUB_ENV
32+
33+
- name: Godot Asset Lib
34+
# You may pin to the exact commit or the version.
35+
# uses: deep-entertainment/godot-asset-lib-action@81addbb4db62199a69e4aa5535741a8928d6abb6
36+
uses: deep-entertainment/[email protected]
37+
with:
38+
action: addEdit
39+
# Godot asset lib username
40+
username: expressobits
41+
# Godot asset lib password
42+
password: ${{ secrets.GODOT_ASSET_LIB_PASSWORD }}
43+
# ID of the asset in the asset store
44+
assetId: 2121
45+
# Path to asset template file
46+
assetTemplate: .github/workflows/.asset-template-csharp-addon.json.hb
47+
# Godot asset lib base url
48+
baseUrl: https://godotengine.org/asset-library/api
49+
50+
- name: Debug Godot Asset Lib
51+
run: echo $PLUGIN_VERSION

0 commit comments

Comments
 (0)