We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3272891 commit cd89986Copy full SHA for cd89986
1 file changed
.github/workflows/main.yml
@@ -0,0 +1,27 @@
1
+name: random_forest_package
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ pypi-publish:
9
+ name: Publish release to PyPI
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - name: Set up Python
14
+ uses: actions/setup-python@v4
15
+ with:
16
+ python-version: "3.x"
17
+ - name: Install dependencies
18
+ run: |
19
+ python -m pip install --upgrade pip
20
+ pip install setuptools wheel
21
+ - name: Build package
22
23
+ python setup.py sdist bdist_wheel # Could also be python -m build
24
+ - name: Publish package distributions to PyPI
25
+ uses: pypa/gh-action-pypi-publish@release/v1
26
27
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments