Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9a7fda708 | ||
|
|
05570869bd | ||
|
|
aa45a3257f | ||
|
|
fc490c3965 | ||
|
|
d5d1fde18f | ||
|
|
df30106c36 | ||
|
|
f8ef4b661c | ||
|
|
264c36bf24 | ||
|
|
8e8abbe013 | ||
|
|
350f04f6ed | ||
|
|
e18996b17e | ||
|
|
af37686362 |
@@ -72,6 +72,10 @@ The mapping.txt file used to de-obfuscate your stack traces from crash reports
|
|||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
|
### `releaseName`
|
||||||
|
|
||||||
|
The name of the release published to Google Play, which is generated on commit by default
|
||||||
|
|
||||||
### `internalSharingDownloadUrl`
|
### `internalSharingDownloadUrl`
|
||||||
|
|
||||||
The download url for an app that was uploaded using the `track` `internalsharing`
|
The download url for an app that was uploaded using the `track` `internalsharing`
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
if (mod && mod.__esModule) return mod;
|
if (mod && mod.__esModule) return mod;
|
||||||
var result = {};
|
var result = {};
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
@@ -80,7 +80,8 @@ function uploadToPlayStore(options, releaseFiles) {
|
|||||||
// Simple check to see whether commit was successful
|
// Simple check to see whether commit was successful
|
||||||
if (res.data.id != null) {
|
if (res.data.id != null) {
|
||||||
core.debug(`Successfully committed ${res.data.id}`);
|
core.debug(`Successfully committed ${res.data.id}`);
|
||||||
core.setOutput("releaseName", getPublishedReleaseName(res.data, options));
|
const name = options.name || (yield getPublishedReleaseName(res.data, options));
|
||||||
|
core.setOutput("releaseName", name);
|
||||||
return Promise.resolve(res.data.id);
|
return Promise.resolve(res.data.id);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -253,6 +254,8 @@ function uploadBundle(appEdit, options, bundleReleaseFile) {
|
|||||||
function getPublishedReleaseName(appEdit, options) {
|
function getPublishedReleaseName(appEdit, options) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const track = yield androidPublisher.edits.tracks.get({
|
const track = yield androidPublisher.edits.tracks.get({
|
||||||
|
auth: options.auth,
|
||||||
|
packageName: options.applicationId,
|
||||||
editId: appEdit.id,
|
editId: appEdit.id,
|
||||||
track: options.track
|
track: options.track
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
if (mod && mod.__esModule) return mod;
|
if (mod && mod.__esModule) return mod;
|
||||||
var result = {};
|
var result = {};
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
if (mod && mod.__esModule) return mod;
|
if (mod && mod.__esModule) return mod;
|
||||||
var result = {};
|
var result = {};
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "upload-google-play",
|
"name": "upload-google-play",
|
||||||
"version": "1.0.6",
|
"version": "1.0.9",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Upload an Android release (.apk or .aab) to Google Play Console",
|
"description": "Upload an Android release (.apk or .aab) to Google Play Console",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
|
|||||||
@@ -77,7 +77,8 @@ export async function uploadToPlayStore(options: EditOptions, releaseFiles: stri
|
|||||||
// Simple check to see whether commit was successful
|
// Simple check to see whether commit was successful
|
||||||
if (res.data.id != null) {
|
if (res.data.id != null) {
|
||||||
core.debug(`Successfully committed ${res.data.id}`);
|
core.debug(`Successfully committed ${res.data.id}`);
|
||||||
core.setOutput("releaseName", getPublishedReleaseName(res.data, options))
|
const name = options.name || (await getPublishedReleaseName(res.data, options));
|
||||||
|
core.setOutput("releaseName", name)
|
||||||
return Promise.resolve(res.data.id!);
|
return Promise.resolve(res.data.id!);
|
||||||
} else {
|
} else {
|
||||||
core.setFailed(`Error ${res.status}: ${res.statusText}`);
|
core.setFailed(`Error ${res.status}: ${res.statusText}`);
|
||||||
@@ -242,6 +243,8 @@ async function uploadBundle(appEdit: AppEdit, options: EditOptions, bundleReleas
|
|||||||
|
|
||||||
async function getPublishedReleaseName(appEdit: AppEdit, options: EditOptions): Promise<String | null | undefined> {
|
async function getPublishedReleaseName(appEdit: AppEdit, options: EditOptions): Promise<String | null | undefined> {
|
||||||
const track = await androidPublisher.edits.tracks.get({
|
const track = await androidPublisher.edits.tracks.get({
|
||||||
|
auth: options.auth,
|
||||||
|
packageName: options.applicationId,
|
||||||
editId: appEdit.id!,
|
editId: appEdit.id!,
|
||||||
track: options.track
|
track: options.track
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user