-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (44 loc) · 1.45 KB
/
push_csharp_addon_to_asset_lib .yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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/[email protected]
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