-
Notifications
You must be signed in to change notification settings - Fork 4
87 lines (82 loc) · 3.19 KB
/
post_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Post-Release Actions
on:
release:
types:
- created
jobs:
bump-cross-platform-sdks:
runs-on: ubuntu-latest
steps:
- name: Create Flutter PR
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Content-Type: application/json" \
https://api.github.com/repos/smileidentity/flutter/actions/workflows/release_ios.yml/dispatches \
--data '{"ref": "main","inputs": {"ios_release_version": "${{ github.event.release.tag_name }}" }}'
- name: Create React Native PR
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Content-Type: application/json" \
https://api.github.com/repos/smileidentity/react-native/actions/workflows/ios_release.yml/dispatches \
--data '{"ref": "main","inputs": {"ios_release_version": "${{ github.event.release.tag_name }}" }}'
update-docs-release-notes:
runs-on: ubuntu-latest
steps:
- name: Checkout ios
uses: actions/checkout@v4
with:
path: ios
- name: Checkout docs
uses: actions/checkout@v4
with:
repository: smileidentity/docs
path: docs
token: ${{ secrets.GH_PAT }}
- name: Copy CHANGELOG.md to Release Notes
run: cp ios/CHANGELOG.md docs/integration-options/mobile/ios-v10/release-notes.md
- name: Create docs PR
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_PAT }}
path: docs
commit-message: iOS ${{ github.event.release.tag_name }} Release Notes
title: iOS ${{ github.event.release.tag_name }} Release Notes
body: Automated PR to update the release notes
branch: ios-release-notes-${{ github.event.release.tag_name }}
labels: "release-notes"
team-reviewers: "smileidentity/mobile"
generate-docc-reference-docs:
# TODO: Change back to macos-latest once it points to macOS 14 (Q2 '24)
runs-on: macos-14
timeout-minutes: 10
permissions:
contents: write
steps:
- name: Checkout main branch
uses: actions/checkout@v4
with:
path: ios
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
path: docs
ref: gh-pages
- name: Setup environment
run: cd ios && bundle install
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.2
- name: Generate Archive
run: xcodebuild docbuild -workspace ios/Example/SmileID.xcworkspace -scheme SmileID -destination 'generic/platform=iOS' DOCC_OUTPUT_DIR=.
- name: Generate Docs Site
run: $(xcrun --find docc) process-archive transform-for-static-hosting ios/Example/Pods/SmileID.doccarchive --output-path docs --hosting-base-path ios
- name: Push gh-pages branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: docs
branch: gh-pages