Skip to content

Commit

Permalink
upload-meta-quest-build 2.0.0 (#12)
Browse files Browse the repository at this point in the history
- Added age group required parameter
- updated packages
  • Loading branch information
StephenHodgson authored Jun 21, 2024
1 parent 7380ab0 commit 4e887df
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 9 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ A GitHub action for [uploading a Meta Quest app to the Meta Quest store](https:/

```yaml
steps:
- uses: RageAgainstThePixel/setup-ovr-platform-util@v1.1
- uses: RageAgainstThePixel/setup-ovr-platform-util@v1

- uses: RageAgainstThePixel/upload-meta-quest-build@v1.1
- uses: RageAgainstThePixel/upload-meta-quest-build@v2
with:
appId: ${{ secrets.APP_ID }}
appSecret: ${{ secrets.APP_SECRET }}
Expand All @@ -26,6 +26,7 @@ steps:
| Name | Description | Default | Required |
| ---- | ----------- | ------- |---------|
| ageGroup | Age group of the build. This can be TEENS_AND_ADULTS, MIXED_AGES, or CHILDREN. | "" | Yes |
| appId | Your App ID from the meta store | "" | Yes |
| appSecret | Your App secret from the meta store | "" | Must provide appSecret or token |
| token | The App ID from the meta store | "" | Must provide appSecret or token |
Expand Down
3 changes: 3 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: 'Upload Meta Quest Build'
description: 'A GitHub action for uploading a Meta Quest app to the Meta Quest store.'

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.'
required: true
appId:
description: 'Required. Specifies the ID of your app. Obtained from the API tab of your app in the Oculus Dashboard.'
required: true
Expand Down
9 changes: 9 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27841,6 +27841,15 @@ const main = async () => {
let args = [];
args.push('upload-quest-build');

const ageGroup = core.getInput('ageGroup');

if (!ageGroup) {
throw Error('Missing ageGroup input. Must be one of: TEENS_AND_ADULTS, MIXED_AGES, or CHILDREN.');
}

args.push('--age_group');
args.push(ageGroup);

const appId = core.getInput('appId');

if (!appId) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "upload-meta-quest-build",
"version": "1.1.0",
"version": "2.0.0",
"description": "A GitHub action for uploading a Meta Quest app to the Meta Quest store.",
"main": "src/index.js",
"dependencies": {
Expand Down
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ const main = async () => {
let args = [];
args.push('upload-quest-build');

const ageGroup = core.getInput('ageGroup');

if (!ageGroup) {
throw Error('Missing ageGroup input. Must be one of: TEENS_AND_ADULTS, MIXED_AGES, or CHILDREN.');
}

args.push('--age_group');
args.push(ageGroup);

const appId = core.getInput('appId');

if (!appId) {
Expand Down

0 comments on commit 4e887df

Please sign in to comment.