File tree Expand file tree Collapse file tree 4 files changed +40
-97
lines changed Expand file tree Collapse file tree 4 files changed +40
-97
lines changed Original file line number Diff line number Diff line change 1- name : release
1+ name : Reusable Release
2+
23on :
3- push :
4- branches :
5- - main
4+ workflow_call :
5+ inputs :
6+ publish-args :
7+ required : true
8+ type : string
9+ workflow-name :
10+ required : true
11+ type : string
612
713# Declare default permissions as read only.
814permissions : read-all
1218 if : github.repository_owner == 'flutter'
1319 name : release
1420 permissions :
15- # Release needs to push a tag back to the repo.
1621 contents : write
1722 runs-on : ubuntu-latest
1823 steps :
7883 # verbose:true will produce too many logs that hang github actions web UI.
7984 verbose : false
8085
81- - name : run release
82- run : |
83- git config --global user.name ${{ secrets.USER_NAME }}
84- git config --global user.email ${{ secrets.USER_EMAIL }}
85- dart ./script/tool/lib/src/main.dart publish --all-changed --base-sha=HEAD~ --skip-confirmation --remote=origin
86- env : {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}
86+ - name : run release
87+ run : |
88+ git config --global user.name ${{ secrets.USER_NAME }}
89+ git config --global user.email ${{ secrets.USER_EMAIL }}
90+ dart ./script/tool/lib/src/main.dart publish ${{ inputs.publish-args }}
91+ env : {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}
Original file line number Diff line number Diff line change 1+ name : Batch Release
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ release :
8+ uses : ./.github/workflows/reusable_release.yml
9+ with :
10+ publish-args : ' --all-changed --batch-release --base-sha=HEAD~ --skip-confirmation --remote=origin'
11+ workflow-name : ' Batch Release'
12+ secrets : inherit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Main Release
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ release :
8+ uses : ./.github/workflows/reusable_release.yml
9+ with :
10+ publish-args : ' --all-changed --base-sha=HEAD~ --skip-confirmation --remote=origin'
11+ workflow-name : ' Main Release'
12+ secrets : inherit
You can’t perform that action at this time.
0 commit comments