Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- only validate app when uploading to app store
  • Loading branch information
StephenHodgson authored Oct 27, 2024
1 parent 51579ef commit 73d99a6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61309,11 +61309,11 @@ const main = async () => {
projectRef.xcodeVersion = semver.coerce(xcodeVersionString);
projectRef = await (0, xcode_1.ArchiveXcodeProject)(projectRef);
projectRef = await (0, xcode_1.ExportXcodeArchive)(projectRef);
await (0, xcode_1.ValidateApp)(projectRef);
const uploadInput = core.getInput('upload') || projectRef.isAppStoreUpload().toString();
const upload = projectRef.isAppStoreUpload() && uploadInput === 'true';
core.debug(`uploadInput: ${upload}`);
if (upload) {
await (0, xcode_1.ValidateApp)(projectRef);
await (0, xcode_1.UploadApp)(projectRef);
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 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": "unity-xcode-builder",
"version": "1.1.1",
"version": "1.1.2",
"description": "A GitHub Action to build, archive, and upload Unity exported xcode projects.",
"author": "RageAgainstThePixel",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ const main = async () => {
projectRef.xcodeVersion = semver.coerce(xcodeVersionString);
projectRef = await ArchiveXcodeProject(projectRef);
projectRef = await ExportXcodeArchive(projectRef);
await ValidateApp(projectRef);
const uploadInput = core.getInput('upload') || projectRef.isAppStoreUpload().toString();
const upload = projectRef.isAppStoreUpload() && uploadInput === 'true';
core.debug(`uploadInput: ${upload}`);
if (upload) {
await ValidateApp(projectRef);
await UploadApp(projectRef);
}
} else {
Expand Down

0 comments on commit 73d99a6

Please sign in to comment.