Skip to content

Commit aa04d2b

Browse files
Add workflow to release mlgo utils
1 parent f9614b3 commit aa04d2b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release mlgo-utils
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push
8+
workflow_dispatch:
9+
inputs:
10+
branch:
11+
description: 'Branch'
12+
required: true
13+
type: string
14+
15+
jobs:
16+
release-mlgo-utils:
17+
name: Release mlg-utils
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout LLVM
21+
uses: actions/[email protected]
22+
with:
23+
ref: "${{ inputs.branch }}"
24+
- name: Package mlgo-utils
25+
run: |
26+
cd llvm/utils/mlgo-utils
27+
python3 -m build
28+
- name: Upload mlgo-utils to test.pypi.org
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
password: ${{ secrets.TEST_PYPI_TOKEN }}
32+
repository-url: https://test.pypi.org/legalcy/
33+
packages-dir: llvm/utils/mlgo-utils/dist/

0 commit comments

Comments
 (0)