8.0.0 #39
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 | |
on: | |
release: | |
types: [released] | |
jobs: | |
publish: | |
name: Upload flutter SDK | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.7.7' | |
channel: 'stable' | |
- name: Flutter version | |
run: flutter --version | |
- name: Cache pub dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.FLUTTER_HOME }}/.pub-cache | |
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} | |
restore-keys: ${{ runner.os }}-pub- | |
- name: Download pub dependencies | |
run: flutter pub get | |
- name: Setup Pub Credentials | |
run: | | |
mkdir -p $HOME/.config/dart | |
cat <<EOF > $HOME/.config/dart/pub-credentials.json | |
{ | |
"accessToken": "${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}", | |
"refreshToken": "${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}", | |
"idToken": "${{ secrets.PUB_DEV_PUBLISH_ID_TOKEN }}", | |
"tokenEndpoint": "${{ secrets.PUB_DEV_PUBLISH_TOKEN_ENDPOINT }}", | |
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ], | |
"expiration": ${{ secrets.PUB_DEV_PUBLISH_EXPIRATION }} | |
} | |
EOF | |
- name: Check Publish Warnings | |
run: flutter pub publish --dry-run | |
- name: Publish SDK | |
run: flutter pub publish -f |