This repository contains:
- An asset gem named
RemoteGemDemo
- A
repo.json
file containing information about this remote o3de repository - A GitHub release with the .zip containing the gem and associated gem.json
https://raw.githubusercontent.com/AMZN-alexpete/o3de-remote-gem-repo-demo/main
- Create a public GitHub repository for the gem
- Create a gem named
RemoteGemDemo
using theAssetGem
template and output it in the c:\remote-gem-demo foldercd c:\o3de scripts\o3de.bat create-gem -gn RemoteGemDemo -tp Templates\AssetGem -gp c:\remote-gem-demo
- Create the local git repository, commit the initial contents and push
cd c:\remote-gem-demo git init . git checkout -b main git add . git commit -sm "Initial commit" git remote add origin https://github.com/AMZN-alexpete/o3de-remote-gem-repo-demo.git git push -u main origin
- Create a repo.json file and add the following information, but replace the owner and repository names in the URLs with your own GitHub owner and repository names.
{ "repo_name":"RemoteGemDemo", "origin":"AMZN-alexpete", "repo_uri": "https://raw.githubusercontent.com/AMZN-alexpete/o3de-remote-gem-repo-demo/main", "summary": "A Gem Repository with a single Gem in the root of the repository.", "additional_info": "See the README.md at the root of this repository for more information", "last_updated": "2022-07-06", "gems": [ "https://raw.githubusercontent.com/AMZN-alexpete/o3de-remote-gem-repo-demo/main" ] }
- Edit your
gem.json
file and add/update therepo_uri
andorigin_uri
fields"repo_uri": "https://raw.githubusercontent.com/AMZN-alexpete/o3de-remote-gem-repo-demo/main", "origin_uri": "https://github.com/AMZN-alexpete/o3de-remote-gem-repo-demo/archive/main.zip",
- Save and close the file
- Commit and push the updated
gem.json
filecd c:\remote-gem-demo git add gem.json git commit -sm "Updated gem URI" git push
- Zip up the contents of the gem folder (c:\remote-gem-demo)
- Create a GitHub release and publish it
- Upload your gem .zip as a file in the release and copy the download URL for the file
- Edit your
gem.json
file and add/update therepo_uri
andorigin_uri
fields"repo_uri": "https://raw.githubusercontent.com/AMZN-alexpete/o3de-remote-gem-repo-demo/main", "origin_uri": "https://github.com/AMZN-alexpete/o3de-remote-gem-repo-demo/releases/download/1.0.0/o3de-remote-gem-repo-demo-main.zip",
- Save and close the file
- Commit and push the updated
gem.json
filecd c:\remote-gem-demo git add gem.json git commit -sm "Updated gem URI" git push