diff --git a/README.md b/README.md index 7fed834..7339029 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,23 @@ 2. Create a new workflow by going into the "Actions" tab. ```hcl - workflow "New workflow" { - on = "push" - resolves = ["App Inventor Extension"] + workflow "Build my extension" { + resolves = ["Publish AIX"] + on = "release" } - action "App Inventor Extension" { + action "Build AIX" { uses = "pavi2410/AIX-Action@master" } + + # OPTIONAL + action "Publish AIX" { + uses = "JasonEtco/upload-to-release@master" + needs = ["Build AIX"] + secrets = ["GITHUB_TOKEN"] + args = "/github/workspace/appinventor-sources/appinventor/components/build/extensions/tk.pavi2410.aix application/zip" + } ``` ![Example](example.png) -3. Now, whenever you push a commit, the extension will be built automatically and can be located at `$GITHUB_WORKSPACE/appinventor-sources/appinventor/components/build/extensions` - +3. Now, whenever you push a commit, the extension will be built automatically and can be located at `/github/workspace/appinventor-sources/appinventor/components/build/extensions/`