1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- name : ' Release'
15+ name : " Release"
1616
1717defaults :
1818 run :
3939 type : boolean
4040 default : true
4141 secrets :
42- TWINE_USERNAME :
43- required : true
4442 TWINE_PASSWORD :
4543 required : true
46- SLACK_WEBHOOK_ADMIN :
47- required : true
4844 SLACK_WEBHOOK :
4945 required : true
5046 PAT :
@@ -62,12 +58,10 @@ jobs:
6258 ref : ${{ inputs.release-ref }}
6359 no-publish : true
6460 secrets :
65- TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
6661 TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
6762
6863 bump-next-version :
6964 runs-on : ubuntu-latest
70- environment : main # ${{ inputs.dry-run == true && 'public' || 'main' }}
7165 needs : build-test-publish-wheels-dry-run
7266 if : |
7367 (
9084 - name : Bump version MCore
9185 id : bump-version-mcore
9286 env :
93- SRC_DIR : ' '
94- PYPROJECT_NAME : ' megatron.core'
87+ SRC_DIR : " "
88+ PYPROJECT_NAME : " megatron.core"
9589 run : |
9690 set +u
9791 cd ${{ github.run_id }}
@@ -129,8 +123,8 @@ jobs:
129123 - name : Bump version MFSDP
130124 id : bump-version-mfsdp
131125 env :
132- SRC_DIR : ' megatron/core/distributed/fsdp/src/'
133- PYPROJECT_NAME : ' megatron_fsdp'
126+ SRC_DIR : " megatron/core/distributed/fsdp/src/"
127+ PYPROJECT_NAME : " megatron_fsdp"
134128 run : |
135129 set +u
136130
@@ -323,7 +317,6 @@ jobs:
323317 create-gh-release :
324318 needs : [build-test-publish-wheels, bump-next-version]
325319 runs-on : ubuntu-latest
326- environment : ${{ inputs.dry-run == true && 'public' || 'main' }}
327320 if : |
328321 (
329322 success() || !failure()
@@ -405,7 +398,6 @@ jobs:
405398 notify :
406399 needs : [build-test-publish-wheels, create-gh-release]
407400 runs-on : ubuntu-latest
408- environment : ${{ inputs.dry-run == true && 'public' || 'main' }}
409401 env :
410402 GH_URL : https://github.com/${{ github.repository }}/releases/tag/v${{ needs.build-test-publish-wheels.outputs.version }}
411403 PYPI_URL : https://${{ inputs.dry-run == true && 'test.' || '' }}pypi.org/project/${{ needs.build-test-publish-wheels.outputs.pypi-name }}/${{ needs.build-test-publish-wheels.outputs.version }}/
0 commit comments