Merge pull request #52 from argyle-systems/release-1.11.0 #21
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: publish-sdk | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
publish-sdk: | |
permissions: | |
id-token: write # Required for authentication using OIDC | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.7.10' | |
channel: 'stable' | |
architecture: x64 | |
- name: Install dependencies | |
run: flutter pub get | |
- id: tag | |
run: echo "DEPLOY_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
- name: Set SDK version | |
run: | | |
sed -i "s/version: \"0.0.1\" # %LINK_VERSION%/version: \"${{ steps.tag.outputs.DEPLOY_TAG }}\"/g" pubspec.yaml | |
- name: Publish | |
run: flutter pub publish --force |