File tree Expand file tree Collapse file tree 4 files changed +36
-52
lines changed Expand file tree Collapse file tree 4 files changed +36
-52
lines changed Original file line number Diff line number Diff line change 21
21
CI_UTILS_FOLDER : " ./aws-iot-device-sdk-python-v2/utils"
22
22
CI_SAMPLES_CFG_FOLDER : " ./aws-iot-device-sdk-python-v2/.github/workflows"
23
23
CI_SAMPLES_FOLDER : " ./aws-iot-device-sdk-python-v2/samples"
24
- CI_PUBSUB_ROLE : ${{ secrets.AWS_CI_PUBSUB_ROLE }}
25
- CI_COGNITO_ROLE : ${{ secrets.AWS_CI_COGNITO_ROLE }}
26
- CI_X509_ROLE : ${{ secrets.AWS_CI_X509_ROLE }}
27
- CI_CUSTOM_AUTHORIZER_ROLE : ${{ secrets.AWS_CI_CUSTOM_AUTHORIZER_ROLE }}
28
- CI_SHADOW_ROLE : ${{ secrets.AWS_CI_SHADOW_ROLE }}
29
- CI_JOBS_ROLE : ${{ secrets.AWS_CI_JOBS_ROLE }}
30
- CI_FLEET_PROVISIONING_ROLE : ${{ secrets.AWS_CI_FLEET_PROVISIONING_ROLE }}
31
- CI_DEVICE_ADVISOR : ${{ secrets.AWS_CI_DEVICE_ADVISOR_ROLE }}
32
- CI_MQTT5_ROLE : ${{ secrets.AWS_CI_MQTT5_ROLE }}
24
+ CI_PUBSUB_ROLE : arn:aws:iam::180635532705:role/CI_PubSub_Role
25
+ CI_COGNITO_ROLE : arn:aws:iam::180635532705:role/CI_Cognito_Role
26
+ CI_X509_ROLE : arn:aws:iam::180635532705:role/CI_X509_Role
27
+ CI_CUSTOM_AUTHORIZER_ROLE : arn:aws:iam::180635532705:role/CI_CustomAuthorizer_Role
28
+ CI_SHADOW_ROLE : arn:aws:iam::180635532705:role/CI_Shadow_Role
29
+ CI_JOBS_ROLE : arn:aws:iam::180635532705:role/CI_Jobs_Role
30
+ CI_FLEET_PROVISIONING_ROLE : arn:aws:iam::180635532705:role/service-role/CI_FleetProvisioning_Role
31
+ CI_DEVICE_ADVISOR : arn:aws:iam::180635532705:role/CI_DeviceAdvisor_Role
32
+ CI_MQTT5_ROLE : arn:aws:iam::180635532705:role/CI_MQTT5_Role
33
33
CI_BUILD_AND_TEST_ROLE : arn:aws:iam::180635532705:role/V2_SDK_Unit_Testing
34
34
35
35
jobs :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -42,10 +42,35 @@ jobs:
42
42
43
43
./utils/publish-release.sh "${{ github.event.inputs.release_type }}" "$Title"
44
44
45
+ - name : Generate documentation
46
+ run : |
47
+ python3 -m pip install sphinx
48
+ python3 -m pip install --verbose .
49
+ ./make-docs.py
50
+
51
+ - name : Commit documentation
52
+ run : |
53
+ git config --local user.email "[email protected] "
54
+ git config --local user.name "GitHub Action"
55
+ git add --force docs/
56
+ current_version=$(git describe --tags --abbrev=0)
57
+ git commit --message="Update Docs: ${current_version}"
58
+
59
+ - name : Push generated documentation to docs branch
60
+
61
+ with :
62
+ github_token : ${{ github.token }}
63
+ branch : docs
64
+ # Force push so that `docs` branch always looks like `main`,
65
+ # but with 1 additional "update docs" commit.
66
+ # This seems simpler than trying to cleanly merge `main` into
67
+ # `docs` each time.
68
+ force : true
69
+
45
70
- name : configure AWS credentials (Release)
46
71
uses : aws-actions/configure-aws-credentials@v1
47
72
with :
48
- role-to-assume : ${{ secrets.AWS_CI_RELEASE_ROLE }}
73
+ role-to-assume : arn:aws:iam::180635532705:role/CI_V2_RELEASE_S3_ROLE
49
74
aws-region : us-east-1
50
75
51
76
- name : " Create VERSION file and trigger release"
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def main():
46
46
highest = i_version_tuple
47
47
continue
48
48
49
- if (highest [0 ] != 0 and highest [1 ] != 0 and highest [2 ] != 0 ):
49
+ if (highest [0 ] != 0 or highest [1 ] != 0 or highest [2 ] != 0 ):
50
50
print (f"v{ highest [0 ]} .{ highest [1 ]} .{ highest [2 ]} " )
51
51
sys .exit (0 )
52
52
else :
You can’t perform that action at this time.
0 commit comments