https://github.com/jmonkeyengine/jme-library-publish-action
https://github.com/jmonkeyengine/jme-library-publish-action
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jmonkeyengine/jme-library-publish-action
- Owner: jMonkeyEngine
- License: unlicense
- Created: 2022-07-01T08:15:06.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T11:17:12.000Z (almost 4 years ago)
- Last Synced: 2025-06-08T13:02:23.106Z (12 months ago)
- Language: JavaScript
- Size: 200 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jMonkeyEngine Publish To Library Action
A github action to publish to [jMonkeyEngine Library](https://library.jmonkeyengine.org) with ease.
## Usage
There is some configuration needed to use this action, but luckily the [library](https://library.jmonkeyengine.org) can generate most of it automatically.
First you need to either open an existing entry in edit mode

or create a new one

Then in the edit page you will find this button

that you can press to generate a preconfigured snippet and secret to use in your repo.
## Manual/Tweaked configuration
The GitHub importer tries its best to figure out as much as possible from the repo, however there might be some data that needs to be configured manually.
You can do that from the [library.jmonkeyengine.org](https://library.jmonkeyengine.org) web ui or by passing an `entry.json` file (built by following the [entry/set/request api](https://library.jmonkeyengine.org/apidoc/entry/set/request)) to the action using the `data` param.
```yaml
- name: Publish to jMonkeyEngine Library
if: github.event_name == 'release'
uses: jMonkeyEngine/jme-library-publish-action@1.0
with:
userId: ${{ secrets.LIBRARY_USER_ID }}
authId: ${{ secrets.LIBRARY_AUTH_ID }}
authKey: ${{ secrets.LIBRARY_AUTH_KEY }}
token: ${{ secrets.GITHUB_TOKEN }}
data: "./entry.json"
```
additionally we can use `entry.json` to override the data imported by the github importer.
For example, we can specify a `name` field to override the entry name on the library page:
```json
{
"name": "something something"
}
```
Finally, to disable the github importer entirely, you can set `fetch-repo` to `nil`. In this case only the data provided by the`entry.json` will be used.
## Advanced usage
See [action.yaml](action.yml) for a list of supported params.