Skip to content

Commit 6633a32

Browse files
Merge pull request #1 from appcircleio/feat/SP-201
Feat/sp 201
2 parents a4d435b + 7f034e3 commit 6633a32

14 files changed

Lines changed: 28997 additions & 20026 deletions

File tree

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '16'
25+
26+
- name: Test Local Action
27+
id: test-action
28+
uses: ./
29+
with:
30+
accessToken: ${{ secrets.AC_ACCESS_TOKEN }}
31+
profileID: ${{ secrets.AC_PROFILE_ID }}
32+
appPath: ${{ secrets.APP_PATH }}
33+
message: ${{ secrets.MESSAGE }}

README.md

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ Overall, using testing distribution in mobile DevOps significantly enhances the
7070
efficiency, security, and effectiveness of the software development process,
7171
leading to better products and faster delivery times.
7272

73+
## System Requirements
74+
75+
**Compatible Agents:**
76+
77+
- macOS
78+
- Ubuntu
79+
- Ventura
80+
81+
Note: We currently support **Appcircle Cloud**, with **self-hosted** support
82+
planned in our roadmap.
83+
7384
### Testing Distribution
7485

7586
In order to share your builds with testers, you can create distribution profiles
@@ -94,16 +105,29 @@ assign testing groups to these profiles. Add a step to your pipeline for 'Test
94105
Local Action' with the appropriate information.
95106

96107
```yaml
97-
- name: Test Local Action
98-
id: testing-distribution
108+
- name: Publish App to Appcircle
109+
id: testing-distribution-appcircle
99110
uses: appcircleio/appcircle-testing-distribution-githubaction
100111
with:
101-
accessToken: ${{ secrets.AC_ACCESS_TOKEN }} # Your Appcircle Access Token
102-
profileID: ${{ secrets.AC_PROFILE_ID }} # ID of your Appcircle Distribution Profile
103-
appPath: ${{ secrets.APP_PATH }} # Path to your iOS .ipa or .xcarchive, or Android APK or App Bundle
112+
personalAPIToken: ${{ secrets.AC_PROFLE_API_TOKEN }}
113+
profileName: ${{ secrets.AC_PROFILE_NAME }}
114+
createProfileIfNotExists: ${{ secrets.CREATE_PROFILE_IF_NOT_EXISTS }}
115+
appPath: ${{ secrets.APP_PATH }}
104116
message: ${{ secrets.MESSAGE }}
105117
```
106118
119+
- `personalAPIToken`: The Appcircle Personal API token is utilized to
120+
authenticate and secure access to Appcircle services, ensuring that only
121+
authorized users can perform actions within the platform.
122+
- `profileName`: Specifies the profile that will be used for uploading the app.
123+
- `createProfileIfNotExists`: Ensures that a user profile is automatically
124+
created if it does not already exist; if the profile name already exists, the
125+
app will be uploaded to that existing profile instead.
126+
- `appPath`: Indicates the file path to the application that will be uploaded to
127+
Appcircle Testing Distribution Profile.
128+
- `message`: Your message to testers, ensuring they receive important updates
129+
and information regarding the application.
130+
107131
### Leveraging Environment Variables
108132

109133
Utilize environment variables seamlessly by substituting the parameters with
@@ -118,7 +142,7 @@ need support or more information, please
118142

119143
### Reference
120144

121-
- For details on generating an Appcircle Personal Access Token, visit
145+
- For details on generating an Appcircle Personal API Token, visit
122146
[Generating/Managing Personal API Tokens](https://docs.appcircle.io/appcircle-api/api-authentication#generatingmanaging-the-personal-api-tokens?utm_source=github&utm_medium=plugin&utm_campaign=testing_distribution)
123147

124148
- To create or learn more about Appcircle testing and distribution profiles,

action.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,22 @@ branding:
99
color: 'blue'
1010

1111
inputs:
12-
accessToken:
12+
personalAPIToken:
1313
description:
14-
'Provide the Appcircle access token to authenticate connections to
15-
Appcircle services. This token allows your Azure DevOps pipeline to
16-
interact with Appcircle for distributing applications'
14+
'Provide Appcircle Personal API Token to authenticate Appcircle services.'
1715
required: true
18-
profileID:
16+
profileName:
1917
description:
20-
'Enter the ID of the Appcircle distribution profile. This ID uniquely
21-
identifies the profile under which your applications will be distributed'
18+
'Enter the profile name of the Appcircle distribution profile. This name
19+
uniquely identifies the profile under which your applications will be
20+
distributed'
2221
required: true
22+
createProfileIfNotExists:
23+
description:
24+
'Specify whether to create a new app profile if one does not already
25+
exist.'
26+
required: true
27+
type: boolean
2328
appPath:
2429
description:
2530
'Specify the path to your application file. For iOS, this can be a .ipa or

dist/api/authApi.js

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/authApi.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)