[PATCH] D146491: workflows/release-tasks: Upload lit releases to pypi
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 20 19:29:04 PDT 2023
tstellar created this revision.
tstellar added reviewers: mikeurbach, thieta.
Herald added a subscriber: delcypher.
Herald added a project: All.
tstellar requested review of this revision.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146491
Files:
.github/workflows/release-tasks.yml
llvm/utils/lit/lit/__init__.py
Index: llvm/utils/lit/lit/__init__.py
===================================================================
--- llvm/utils/lit/lit/__init__.py
+++ llvm/utils/lit/lit/__init__.py
@@ -3,6 +3,6 @@
__author__ = 'Daniel Dunbar'
__email__ = 'daniel at minormatter.com'
__versioninfo__ = (17, 0, 0)
-__version__ = '.'.join(str(v) for v in __versioninfo__) + 'dev'
+__version__ = '.'.join(str(v) for v in __versioninfo__)
__all__ = []
Index: .github/workflows/release-tasks.yml
===================================================================
--- .github/workflows/release-tasks.yml
+++ .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 at 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 at release/v1
+ with:
+ password: ${{ secrets.LLVM_LIT_PYPI_API_TOKEN }}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146491.506817.patch
Type: text/x-patch
Size: 1533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230321/5c476c3d/attachment.bin>
More information about the llvm-commits
mailing list