Skip to content

Commit

Permalink
upload-meta-quest-build@v2.0.2 (#17)
Browse files Browse the repository at this point in the history
- Fix missing build_id output defined in action.yml
- updated docs
  • Loading branch information
StephenHodgson authored Aug 12, 2024
1 parent 32960ae commit e403621
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 34 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.cache/
node_modules
node_modules
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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/)
Expand All @@ -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)
8 changes: 6 additions & 2 deletions action.yaml → action.yml
Original file line number Diff line number Diff line change
@@ -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.'
Expand Down Expand Up @@ -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'
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 22 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
}
"build": "npm install && npm ci && ncc build src/index.js -o dist --source-map --license licenses.txt"
}
}

0 comments on commit e403621

Please sign in to comment.