Deploy SDK #10
This file contains hidden or 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: Deploy SDK | |
on: | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: 'Reference (tag, commit)' | |
required: true | |
type: string | |
permissions: | |
contents: write | |
jobs: | |
deploy-to-pub-dev: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: 3.4.4 | |
- name: Setup Flutter SDK | |
uses: flutter-actions/setup-flutter@v3 | |
with: | |
version: latest | |
channel: stable | |
- name: Deploy platform_interface | |
run: | | |
cd ortto_flutter_sdk_platform_interface | |
flutter pub get | |
flutter pub publish --dry-run | |
- name: Deploy sdk_ios | |
run: | | |
cd ortto_flutter_sdk_ios | |
dart pub publish --dry-run | |
- name: Deploy sdk_android | |
run: | | |
cd ortto_flutter_sdk_android | |
dart pub publish --dry-run | |
- name: Deploy sdk | |
run: | | |
cd ortto_flutter_sdk | |
dart pub publish --dry-run |