https://github.com/zahmadsaleem/publish-forge
GitHub Action to Publish an Autodesk Design Automation API AppBundle to Autodesk Platform Services(APS)
https://github.com/zahmadsaleem/publish-forge
autodesk autodesk-bim360 autodesk-forge autodesk-platform-services
Last synced: 6 months ago
JSON representation
GitHub Action to Publish an Autodesk Design Automation API AppBundle to Autodesk Platform Services(APS)
- Host: GitHub
- URL: https://github.com/zahmadsaleem/publish-forge
- Owner: zahmadsaleem
- License: mit
- Created: 2023-03-08T12:00:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T09:07:31.000Z (over 2 years ago)
- Last Synced: 2024-03-20T10:29:01.997Z (over 2 years ago)
- Topics: autodesk, autodesk-bim360, autodesk-forge, autodesk-platform-services
- Language: TypeScript
- Homepage:
- Size: 5 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Publish Forge
GitHub Action to Publish an Autodesk Design Automation API AppBundle to Autodesk Platform Services(APS)
This action combines multiple steps described in the [docs](https://aps.autodesk.com/en/docs/design-automation/v3/developers_guide/basics/) to publish an AppBundle to Autodesk Platform Services(APS) into a single GitHub Action.
Example Usage:
```yaml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: "@zahmadsaleem/publish-forge@v1"
with:
client_id : ${{ secrets.FORGE_CLIENT_ID }}
client_secret: ${{ secrets.FORGE_CLIENT_SECRET }}
activities: "./testdata/*.activity.json"
appbundle_engine: "Autodesk.Revit+2023"
appbundle_path: "./testdata/AppBundle.bundle.zip"
appbundle_id: "TestAppBundle"
appbundle_alias: "prod"
create: true
```
## Reference
Most of the parameters are self-explanatory, and analogous to the APS documentation.
### activities
This is a glob pattern that will be used to find all the activity files.
The action will create an activity for each file found.
The activity name will be the name of the field `id` in the activity file.
During an update the `id` field is used to find the activity to update.
For example, if the glob pattern is `./testdata/*.activity.json` and the files are `./testdata/Activity1.activity.json` and `./testdata/Activity2.activity.json`, then the action will create two activities with ids coming from the field `id` in the activity files.
### create
If set to true, the action will create the appbundle and activities if they do not exist.
TOD0:
- [x] Allow creating appbundle, appbundle alias or activity if it doesn't exists
- [ ] Add support for creating and updating activity aliases