[pull] main from llvm:main #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release mlgo-utils | ||
permissions: | ||
contents: read | ||
on: | ||
push | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Branch' | ||
required: true | ||
type: string | ||
jobs: | ||
release-mlgo-utils: | ||
name: Release mlg-utils | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout LLVM | ||
uses: actions/[email protected] | ||
with: | ||
ref: "${{ inputs.branch }}" | ||
- name: Package mlgo-utils | ||
run: | | ||
cd llvm/utils/mlgo-utils | ||
python3 -m build | ||
- name: Upload mlgo-utils to test.pypi.org | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.TEST_PYPI_TOKEN }} | ||
repository-url: https://test.pypi.org/legalcy/ | ||
packages-dir: llvm/utils/mlgo-utils/dist/ |