fastlane-plugin-buildstash 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02240f2a15ed64614ca4dc0ac5c091147dd6eb3bce20ec9f828e5beaef5c90f2
4
- data.tar.gz: ce217738d954813dd9f52ed74ab44a8a0f4df007d1e7c3497ba0c1bef7552924
3
+ metadata.gz: 7ba2835dc2af3fae9a40e7132b7e41e7778e65b02a1304462cda7c47ac3efa80
4
+ data.tar.gz: 76069bf392a0d554835535a1eb9795b0f1e7bfc9b38a14a6b56048b7a6d99054
5
5
  SHA512:
6
- metadata.gz: 87e1c917196f86afef1ecd26cccf1a69f0e780461afa7de9985550f89253003d2865f622f6af3e4c99ddb9ad26582e6faffa8e0f1f9bdde4a0deca0329dbec61
7
- data.tar.gz: 2534d9b532b26db9e576fc5209a0bae0e360fc38fb2429a9ff68ed104dc4558a8c4ea356524c7a3f36d7c52ed6d925882342ffdf6a84ca2ac38a7256db2c103b
6
+ metadata.gz: 4aa058135772962c9793194218405c7c62fc2be57fed53abeb27a0c8e255580b81482b7323f404a879daddbf585587e40f71749dd729c4700bd56ff970173644
7
+ data.tar.gz: d794165f479b22864d19ae04c4fc92f59bd76686c4a38ecebfd04692032fd647481b2849330b61882911e300b536b8174aebccfbba15e40ea5cbf96d756e8c9f
data/README.md CHANGED
@@ -6,10 +6,14 @@ The `fastlane-plugin-buildstash` plugin allows you to upload build artifacts to
6
6
  ## Installation
7
7
  You can install this plugin to your project running:
8
8
 
9
+ ### Preferred installation method
10
+
9
11
  ```sh
10
12
  fastlane add_plugin buildstash
11
13
  ```
12
14
 
15
+ ### Testing locally
16
+
13
17
  Or, to use a copy of this plugin locally, add it to your `Pluginfile`:
14
18
 
15
19
  ```ruby
@@ -55,6 +59,8 @@ lane :run_buildstash_upload do |options|
55
59
  version_component_extra: 'rc',
56
60
  version_component_meta: '2024.12.01',
57
61
  custom_build_number: '12345',
62
+ labels: ["to-review", "signed"],
63
+ architectures: ["armv6", "armv7", "armv8", "arm64v8", "armv9"],
58
64
  notes: '<AppChangelog>',
59
65
  source: 'ghactions',
60
66
  ci_pipeline: options[:ci_pipeline],
@@ -72,31 +78,33 @@ end
72
78
  ```
73
79
 
74
80
  ## Parameters
75
- | Parameter | Description | Required |
76
- |--------------|--------------------------------------------------------------------------------------------------------------|----------|
77
- | `api_key` | The API key for authentication | ✅ |
78
- | `structure` | 'file' for single file, 'file+expansion' to include Android expansion file. will default to 'file' | ✖ |
79
- | `primary_file_path` | './path/to/file.apk' | ✅ |
80
- | `platform` | 'android' or 'ios' (see [Buildstash docs for full list](https://docs.buildstash.com/integrations/platforms)) | ✅ |
81
- | `stream` | Exact name of a build stream in your app | ✅ |
82
- | `version_component_1_major` | Semantic version (major component) | ✅ |
83
- | `version_component_2_minor` | Semantic version (minor component) | ✅ |
84
- | `version_component_3_patch` | Semantic version (patch component) | ✅ |
85
- | `version_component_extra` | Optional pre-release label (beta, rc1, etc) | ✖ |
86
- | `version_component_meta` | Optional release metadata | ✖ |
87
- | `custom_build_number` | Optional custom build number in any format | ✖ |
88
- | `notes` | Changelog or additional notes | ✖️ |
89
- | `source` | Where build was produced (`ghactions`, `jenkins`, etc) defaults to cli-upload | ✖️ |
90
- | `ci_pipeline` | CI pipeline name | ✖️ |
91
- | `ci_run_id` | CI run ID | ✖️ |
92
- | `ci_run_url` | CI run URL | ✖️ |
93
- | `vc_host_type` | Version control host type (git, svn, hg, perforce, etc) | ✖️ |
94
- | `vc_host` | Version control host (github, gitlab, etc) | ✖️ |
95
- | `vc_repo_name` | Repository name | ✖️ |
96
- | `vc_repo_url` | Repository URL | ✖️ |
97
- | `vc_branch` | Branch name (if applicable) | ✖️ |
98
- | `vc_commit_sha` | Commit SHA (if applicable) | ✖️ |
99
- | `vc_commit_url` | Commit URL | ✖️ |
81
+ | Parameter | Description | Required |
82
+ |-----------------------------|--------------------------------------------------------------------------------------------------------------|----------|
83
+ | `api_key` | The API key for authentication | ✅ |
84
+ | `structure` | 'file' for single file, 'file+expansion' to include Android expansion file. will default to 'file' | ✖ |
85
+ | `primary_file_path` | './path/to/file.apk' | ✅ |
86
+ | `platform` | 'android' or 'ios' (see [Buildstash docs for full list](https://docs.buildstash.com/integrations/platforms)) | ✅ |
87
+ | `stream` | Exact name of a build stream in your app | ✅ |
88
+ | `version_component_1_major` | Semantic version (major component) | ✅ |
89
+ | `version_component_2_minor` | Semantic version (minor component) | ✅ |
90
+ | `version_component_3_patch` | Semantic version (patch component) | ✅ |
91
+ | `version_component_extra` | Optional pre-release label (beta, rc1, etc) | ✖ |
92
+ | `version_component_meta` | Optional release metadata | ✖ |
93
+ | `custom_build_number` | Optional custom build number in any format | ✖ |
94
+ | `labels` | Array of labels to attach to build (will be created if they do not already exist) | |
95
+ | `architectures` | Array of architectures this build supports (must be supported by platform) | |
96
+ | `notes` | Changelog or additional notes | ✖️ |
97
+ | `source` | Where build was produced (`ghactions`, `jenkins`, etc) defaults to cli-upload | ✖️ |
98
+ | `ci_pipeline` | CI pipeline name | ✖️ |
99
+ | `ci_run_id` | CI run ID | ✖️ |
100
+ | `ci_run_url` | CI run URL | ✖️ |
101
+ | `vc_host_type` | Version control host type (git, svn, hg, perforce, etc) | ✖️ |
102
+ | `vc_host` | Version control host (github, gitlab, etc) | ✖️ |
103
+ | `vc_repo_name` | Repository name | ✖️ |
104
+ | `vc_repo_url` | Repository URL | ✖️ |
105
+ | `vc_branch` | Branch name (if applicable) | ✖️ |
106
+ | `vc_commit_sha` | Commit SHA (if applicable) | ✖️ |
107
+ | `vc_commit_url` | Commit URL | ✖️ |
100
108
 
101
109
 
102
110
  ## Example Output
@@ -20,6 +20,9 @@ module Fastlane
20
20
  stream = params[:stream]
21
21
  notes = params[:notes]
22
22
 
23
+ labels = params[:labels]
24
+ architectures = params[:architectures]
25
+
23
26
  source = params[:source]
24
27
 
25
28
  ci_pipeline = params[:ci_pipeline]
@@ -79,6 +82,9 @@ module Fastlane
79
82
  vc_commit_url: vc_commit_url
80
83
  }
81
84
 
85
+ request_body[:labels] = labels if labels && !labels.empty?
86
+ request_body[:architectures] = architectures if architectures && !architectures.empty?
87
+
82
88
  expansion_file_path = params[:expansion_file_path]
83
89
  # Add expansion file info if structure is file+expansion and expansion file path provided
84
90
  if structure == 'file+expansion' && expansion_file_path
@@ -350,6 +356,20 @@ module Fastlane
350
356
  type: String
351
357
  ),
352
358
 
359
+ FastlaneCore::ConfigItem.new(
360
+ key: :labels,
361
+ description: "Labels to attach to build",
362
+ optional: true,
363
+ type: Array
364
+ ),
365
+
366
+ FastlaneCore::ConfigItem.new(
367
+ key: :architectures,
368
+ description: "Architectures this build supports",
369
+ optional: true,
370
+ type: Array
371
+ ),
372
+
353
373
  FastlaneCore::ConfigItem.new(
354
374
  key: :notes,
355
375
  description: "Changelog or additional notes",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Buildstash
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-buildstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Buildstash