File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed
actions/publish_flutter_package Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,15 @@ runs:
1111 steps :
1212 - name : 📚 Git Checkout
1313 uses : actions/checkout@v4
14+
1415 - name : 🐦 Setup Flutter
1516 uses : subosito/flutter-action@v2
1617
1718 - name : 🪪 Get Id Token
1819 uses : actions/github-script@v6
1920 with :
2021 script : |
21- let pub_token = await core.getIDToken('https://pub.dev')
22+ const pub_token = await core.getIDToken('https://pub.dev')
2223 core.exportVariable('PUB_TOKEN', pub_token)
2324
2425 - name : 📢 Authenticate
3839 - name : 📢 Publish
3940 shell : ${{ inputs.shell }}
4041 run : flutter pub publish -f
41- working-directory : ${{ inputs.working-directory }}
42+ working-directory : ${{ inputs.working-directory }}
Original file line number Diff line number Diff line change @@ -3,20 +3,22 @@ name: Publish to pub.dev
33on :
44 push :
55 tags :
6- - ' shorebird_code_push-v[0-9]+.[0-9]+.[0-9]+*' # for tags like: 'v1.2.3'
6+ - " shorebird_code_push-v[0-9]+.[0-9]+.[0-9]+*" # for tags like: 'v1.2.3'
77
88jobs :
99 publish :
10- environment : ' pub.dev'
10+ environment : pub.dev
1111 permissions :
1212 id-token : write # Required for authentication using OIDC
1313 runs-on : ubuntu-latest
1414 steps :
15- - name : 📚 Git Checkout
16- uses : actions/checkout@v4
17- with :
18- submodules : recursive
19- - uses : ./.github/actions/publish_flutter_package
20- with :
21- # Specify the github actions deployment environment
22- working-directory : shorebird_code_push
15+ - name : 📚 Git Checkout
16+ uses : actions/checkout@v4
17+ with :
18+ submodules : recursive
19+
20+ - name : 📦 Publish Package
21+ uses : ./.github/actions/publish_flutter_package
22+ with :
23+ # Specify the github actions deployment environment
24+ working-directory : shorebird_code_push
You can’t perform that action at this time.
0 commit comments