Skip to content

Commit

Permalink
feat: CI Push to Godot Asset Store
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelOnFira committed Mar 8, 2024
1 parent 572cf36 commit fe24971
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .asset-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"title": "Rivet Plugin",
"description": "Managed game servers, matchmaking, and DDoS mitigation that lets you focus on building your game.\n\nLearn more at https://rivet.gg",
"category_id": "6",
"godot_version": "4.2",
"version_string": "{{ context.release.tag_name }}",
"cost": "Apache-2.0",
"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/rivet-gg/plugin-godot/28181db1274c827aec4c7c145cbeaabbf1361ac9/addons/rivet/images/icon-square.png",
"previews": [
{
"enabled": true,
"operation": "insert",
"type": "image",
"link": "https://raw.githubusercontent.com/rivet-gg/plugin-godot/28181db1274c827aec4c7c145cbeaabbf1361ac9/media/editor-window.png",
"thumbnail": "https://raw.githubusercontent.com/rivet-gg/plugin-godot/28181db1274c827aec4c7c145cbeaabbf1361ac9/media/editor-window.png"
},
{
"enabled": true,
"operation": "insert",
"type": "image",
"link": "https://raw.githubusercontent.com/rivet-gg/plugin-godot/6bf1a5084bf90157a5f6bbe89a2d7aa38a7130ed/media/local-playtest-tab.png",
"thumbnail": "https://raw.githubusercontent.com/rivet-gg/plugin-godot/6bf1a5084bf90157a5f6bbe89a2d7aa38a7130ed/media/local-playtest-tab.png"
},
{
"enabled": true,
"operation": "insert",
"type": "image",
"link": "https://raw.githubusercontent.com/rivet-gg/plugin-godot/6bf1a5084bf90157a5f6bbe89a2d7aa38a7130ed/media/deploy-tab.png",
"thumbnail": "https://raw.githubusercontent.com/rivet-gg/plugin-godot/6bf1a5084bf90157a5f6bbe89a2d7aa38a7130ed/media/deploy-tab.png"
}
]
}
24 changes: 24 additions & 0 deletions .github/workflows/asset-store.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Push to Godot Asset Store"
on:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
name: Publish new version to Godot Asset Store

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

- name: Godot Asset Lib
uses: deep-entertainment/[email protected]
with:
action: addEdit
username: ${{ secrets.GODOT_ASSET_LIBRARY_USERNAME }}
password: ${{ secrets.GODOT_ASSET_LIBRARY_PASSWORD }}
assetId: 1881
assetTemplate: .asset-template.json
baseUrl: https://godotengine.org/asset-library/api
Binary file added addons/rivet/images/icon-square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions addons/rivet/images/icon-square.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://8lfek3odxbyr"
path="res://.godot/imported/icon-square.png-0c142a3d11f17029ea6dc0f424e2a6cd.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://addons/rivet/images/icon-square.png"
dest_files=["res://.godot/imported/icon-square.png-0c142a3d11f17029ea6dc0f424e2a6cd.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file removed media/screenshot.png
Binary file not shown.

0 comments on commit fe24971

Please sign in to comment.