v10.2.3 #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v6 | |
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 |