1616env :
1717 package : ${{ startsWith(github.ref_name, 'dart-') && 'dart' || startsWith(github.ref_name, 'flutter-') && 'flutter' || '' }}
1818jobs :
19- semantic- release :
19+ release :
2020 if : github.event_name == 'push' && github.ref_type == 'branch'
2121 runs-on : ubuntu-latest
2222 timeout-minutes : 10
@@ -40,16 +40,14 @@ jobs:
4040 - name : Run semantic-release for dart package
4141 run : npx semantic-release
4242 env :
43- GH_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
44- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
4544 PKG_NAME : dart
4645 - name : Run semantic-release for flutter package
4746 run : npx semantic-release
4847 env :
49- GH_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
50- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+ GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
5149 PKG_NAME : flutter
52- release :
50+ pub-publish :
5351 if : github.event_name == 'push' && github.ref_type == 'tag'
5452 runs-on : ubuntu-latest
5553 timeout-minutes : 10
@@ -63,14 +61,14 @@ jobs:
6361 - name : Setup dart
6462 uses : dart-lang/setup-dart@v1
6563 with :
66- sdk : ' 3.2.6 '
64+ sdk : ' 3.10.0 '
6765 - name : Setup flutter
6866 if : env.package == 'flutter'
6967 uses : subosito/flutter-action@v2
7068 with :
7169 cache : true
7270 channel : stable
73- flutter-version : 3.16.9
71+ flutter-version : 3.38.1
7472 - name : Install dart dependencies
7573 run : dart pub get --directory 'packages/dart'
7674 - name : Install flutter dependencies
9189 working-directory : ' packages/${{ env.package }}'
9290 run : dart pub publish --force
9391 docs-publish :
94- needs : release
92+ if : github.event_name == 'push' && github.ref_type == 'tag'
93+ needs : pub-publish
9594 uses : parse-community/Parse-SDK-Flutter/.github/workflows/release-manual-docs.yml@master
9695 with :
9796 tag : ${{ github.ref_name }}
0 commit comments