ci: signed commit on actions

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
Aaron
2023-06-25 12:47:30 -04:00
parent dfaf5d206a
commit 2fed9eae78
3 changed files with 7 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ echo "Releasing $release version $RELEASE_VERSION..." && hatch version "${RELEAS
jq --arg release_version "${RELEASE_VERSION}" '.version = $release_version' < package.json > package.json.tmp && mv package.json.tmp package.json
towncrier build --yes --version "${RELEASE_VERSION}" && git add CHANGELOG.md changelog.d
git add src/openllm/__about__.py package.json && git commit -sm "infra: prepare for release ${RELEASE_VERSION} [generated]"
git add src/openllm/__about__.py package.json && git commit -S -sm "infra: prepare for release ${RELEASE_VERSION} [generated]"
git push origin main
echo "Building artifacts for releasing..." && hatch build

View File

@@ -61,6 +61,11 @@ jobs:
- name: Install jq and curl
run: sudo apt-get install -y jq curl
- name: Create a release
env:
GIT_AUTHOR_NAME: ${{ steps.import-gpg.outputs.name }}
GIT_AUTHOR_EMAIL: ${{ steps.import-gpg.outputs.email }}
GIT_COMMITTER_NAME: ${{ steps.import-gpg.outputs.name }}
GIT_COMMITTER_EMAIL: ${{ steps.import-gpg.outputs.email }}
run: |
git config --global user.name "${{ steps.import-gpg.outputs.name }}"
git config --global user.email "${{ steps.import-gpg.outputs.email }}"

View File

@@ -105,5 +105,5 @@ jobs:
jq --arg release_version "$(hatch version)" '.version = $release_version' < package.json > package.json.tmp && mv package.json.tmp package.json
git add src/openllm/__about__.py package.json && git commit -sm "infra: bump to dev version of $(hatch version) [generated]"
git add src/openllm/__about__.py package.json && git commit -S -sm "infra: bump to dev version of $(hatch version) [generated]"
git push origin HEAD:main