Skip to content

Commit

Permalink
Merge branch 'main' into csharp-addon
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptsengineer committed Sep 19, 2023
2 parents ec5b087 + f128ffa commit 4fcdd85
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/.asset-template-csharp-addon.json.hb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"title": "Character Controller C#",
"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",
"category_id": "6",
"godot_version": "4.1",
"version_string": "{{ env.PLUGIN_VERSION }}",
"cost": "MIT",
"download_provider": "GitHub",
"download_commit": "{{ env.GITHUB_SHA }}",
"browse_url": "{{ context.repository.html_url }}",
"issues_url": "{{ context.repository.html_url }}/issues",
"icon_url": "https://raw.githubusercontent.com/expressobits/character-controller/4c41093cd0f010caa411819c679c6befbc5b3480/icon.svg"
}
51 changes: 51 additions & 0 deletions .github/workflows/push_csharp_addon_to_asset_lib .yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Push CSharp Addon To Asset Lib"
on:
workflow_dispatch:
inputs:
plugin_version:
description: 'Plugin version number:'
required: true
type: string
default: '1.0.0'
push:
branches: [ csharp-addon ]

env:
PLUGIN_VERSION: 0.0.1

jobs:

publish:
# needs: [env-setup]
runs-on: ubuntu-latest
name: Publish new version to asset lib

steps:
- name: Checkout
uses: actions/checkout@v3

- name: set_plugin_version
id: set_plugin_version
run: |
VERSION=$(grep version= addons/character-controller/plugin.cfg | cut -d "=" -f 2 | tr -d '"')
echo "PLUGIN_VERSION=${VERSION}" >> $GITHUB_ENV
- name: Godot Asset Lib
# You may pin to the exact commit or the version.
# uses: deep-entertainment/godot-asset-lib-action@81addbb4db62199a69e4aa5535741a8928d6abb6
uses: deep-entertainment/godot-asset-lib-action@v0.4.0
with:
action: addEdit
# Godot asset lib username
username: expressobits
# Godot asset lib password
password: ${{ secrets.GODOT_ASSET_LIB_PASSWORD }}
# ID of the asset in the asset store
assetId: 2121
# Path to asset template file
assetTemplate: .github/workflows/.asset-template-csharp-addon.json.hb
# Godot asset lib base url
baseUrl: https://godotengine.org/asset-library/api

- name: Debug Godot Asset Lib
run: echo $PLUGIN_VERSION

0 comments on commit 4fcdd85

Please sign in to comment.