diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml --- a/.github/workflows/release-tasks.yml +++ b/.github/workflows/release-tasks.yml @@ -68,3 +68,25 @@ git config user.name "llvmbot" git commit -a -m "Add ${{ steps.validate-tag.outputs.release-version }} documentation" git push https://${{ secrets.WWW_RELEASES_TOKEN }}@github.com/${{ github.repository_owner }}/www-releases main:main + + release-lit: + runs-on: ubuntu-latest + if: github.repository == 'llvm/llvm-project' + steps: + - name: Checkout LLVM + uses: actions/checkout@v3 + + - name: Install dependencies + run: apt-get install -y python3-setuptools + + - name: Package lit + run: | + cd llvm/utils/lit + # Remove 'dev' suffix from lit version. + sed -i "s/ + 'dev'//g" lit/__init__.py + python3 setup.py sdist + + - name: Upload lit + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.LLVM_LIT_PYPI_API_TOKEN }} diff --git a/llvm/utils/lit/lit/__init__.py b/llvm/utils/lit/lit/__init__.py --- a/llvm/utils/lit/lit/__init__.py +++ b/llvm/utils/lit/lit/__init__.py @@ -3,6 +3,6 @@ __author__ = 'Daniel Dunbar' __email__ = 'daniel@minormatter.com' __versioninfo__ = (17, 0, 0) -__version__ = '.'.join(str(v) for v in __versioninfo__) + 'dev' +__version__ = '.'.join(str(v) for v in __versioninfo__) __all__ = []