From e4036212909864e46d130396d9ccc8379d6d3085 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Sun, 11 Aug 2024 23:15:59 -0400 Subject: [PATCH] upload-meta-quest-build@v2.0.2 (#17) - Fix missing build_id output defined in action.yml - updated docs --- .gitignore | 3 +-- README.md | 20 ++++++++++---------- action.yaml => action.yml | 8 ++++++-- package-lock.json | 6 +++--- package.json | 39 ++++++++++++++++++++++----------------- 5 files changed, 42 insertions(+), 34 deletions(-) rename action.yaml => action.yml (95%) diff --git a/.gitignore b/.gitignore index ab2dc47..3c3629e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -.cache/ -node_modules \ No newline at end of file +node_modules diff --git a/README.md b/README.md index 12f389d..8bbf91c 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,13 @@ # upload-meta-quest-build -A GitHub action for [uploading a Meta Quest app to the Meta Quest store](https://developer.oculus.com/resources/publish-reference-platform-command-line-utility/#upload-quest). +A GitHub Action for [uploading a Meta Quest app to the Meta Quest store](https://developer.oculus.com/resources/publish-reference-platform-command-line-utility/#upload-quest). ## How to use * [Get Credentials](https://developer.oculus.com/resources/publish-reference-platform-command-line-utility/#credentials) * Set repo secrets - * `APP_ID` - * `APP_SECRET` - -### outputs - -* `build_id`: The uploaded build id. + * `META_APP_ID` + * `META_APP_SECRET` ### workflow @@ -23,14 +19,14 @@ steps: - uses: RageAgainstThePixel/upload-meta-quest-build@v2 id: upload with: - appId: ${{ secrets.APP_ID }} - appSecret: ${{ secrets.APP_SECRET }} + appId: ${{ secrets.META_APP_ID }} + appSecret: ${{ secrets.META_APP_SECRET }} apkPath: 'path/to/apk' # use uploaded meta quest build id - run: 'echo ${{ steps.upload.build_id }}' ``` -### All Parameters +### inputs [Oculus Platform Utility docs](https://developer.oculus.com/resources/publish-reference-platform-command-line-utility/) @@ -50,6 +46,10 @@ steps: | `debugSymbolsDir` | Path to the folder that contains the debug symbol file(s) | | No | | `debugSymbolsPattern` | Specifies a file pattern that matches the files names of all debug symbol files | | No | +### outputs + +* `build_id`: The uploaded build id. + ## Related actions * [setup-ovr-platform-util](https://github.com/RageAgainstThePixel/setup-ovr-platform-util) diff --git a/action.yaml b/action.yml similarity index 95% rename from action.yaml rename to action.yml index e47d3ee..8d7e9da 100644 --- a/action.yaml +++ b/action.yml @@ -1,6 +1,8 @@ name: 'Upload Meta Quest Build' description: 'A GitHub action for uploading a Meta Quest app to the Meta Quest store.' - +branding: + icon: upload-cloud + color: blue inputs: ageGroup: description: 'Required. (If not specified, the upload will go into “draft” status, rather than failing.) Age group of the build. This can be TEENS_AND_ADULTS, MIXED_AGES, or CHILDREN. For more information, see Age Group Self-Certification and Youth Requirements.' @@ -42,7 +44,9 @@ inputs: debugSymbolsPattern: description: 'Optional. A pattern sequence that can match the filenames of all the debug symbol files. An asterisk may be used to indicate a wildcard, for example, *.sym.so.' required: false - +outputs: + build_id: + description: 'The ID of the build that was uploaded.' runs: using: 'node20' main: 'dist/index.js' diff --git a/package-lock.json b/package-lock.json index 5c1c3f7..4f2b0ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "upload-meta-quest-build", - "version": "2.0.1", + "version": "2.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "upload-meta-quest-build", - "version": "2.0.1", - "license": "ISC", + "version": "2.0.2", + "license": "MIT", "dependencies": { "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1" diff --git a/package.json b/package.json index 924ec22..05c243c 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,24 @@ { "name": "upload-meta-quest-build", - "version": "2.0.1", - "description": "A GitHub action for uploading a Meta Quest app to the Meta Quest store.", - "main": "src/index.js", + "version": "2.0.2", + "description": "A GitHub Action for uploading a Meta Quest app to the Meta Quest store.", + "author": "RageAgainstThePixel", + "repository": { + "type": "git", + "url": "git+https://github.com/RageAgainstThePixel/upload-meta-quest-build.git" + }, + "bugs": { + "url": "https://github.com/RageAgainstThePixel/upload-meta-quest-build/issues" + }, + "homepage": "https://github.com/RageAgainstThePixel/upload-meta-quest-build", + "keywords": [ + "meta", + "quest", + "upload", + "action" + ], + "license": "MIT", + "main": "dist/index.js", "dependencies": { "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1" @@ -12,17 +28,6 @@ }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "ncc build src/index.js -o dist --source-map --license licenses.txt" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RageAgainstThePixel/upload-meta-quest-build.git" - }, - "keywords": [], - "author": "", - "license": "ISC", - "bugs": { - "url": "https://github.com/RageAgainstThePixel/upload-meta-quest-build/issues" - }, - "homepage": "https://github.com/RageAgainstThePixel/upload-meta-quest-build#readme" -} \ No newline at end of file + "build": "npm install && npm ci && ncc build src/index.js -o dist --source-map --license licenses.txt" + } +}