This github action manages assets in the Godot asset library.
Required The action to carry out. Currently, these actions are provided:
- addEdit: Add an asset edit. Requires the assetId input. Expects that you have created the asset previously with all the basic information.
Default: addEdit
Required The username for the asset library
Required The password for the asset library. It's recommeded to use a secret.
Required The id of the asset in the asset store
Required A handlebars template file that will provided with the webhook context of the action. See the webhook reference file for details.
The resulting file should fit the Asset model. See the asset library rest api documentation for details.
The token will be injected by the action.
Default: .asset-template.json.hb
Required Base URL for the godot asset lib.
Default: https://godotengine.org/asset-library/api
If your Godot asset library user has moderation features, you can directly approve the changes.
Default: false
ID of the asset in the asset store.
name: "Push to asset lib"
on:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
name: Publish new version to asset lib
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Godot Asset Lib
uses: deep-entertainment/godot-asset-lib-action@v0.4.0
with:
username: example
password: ${{ secrets.ASSET_STORE_PASSWORD }}
assetId: 12345