Skip to content

Commit

Permalink
Update pypi_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyuwono authored Dec 3, 2024
1 parent 7879567 commit 05899d9
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/pypi_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
## -------------------------------------------------------------------------------------------------
## -- Project : MLPro - The integrative middleware framework for standardized machine learning
## -- Workflow: pypi_deploy.yml
## -------------------------------------------------------------------------------------------------
## -- History :
## -- yyyy-mm-dd Ver. Auth. Description
## -- 2024 1.0.0 DA Creation
## -- 2024-11-29 1.1.0 DA Updated the version for Python to 3.10
## -------------------------------------------------------------------------------------------------

name: Deployment PyPI

on:
release:
types: [published]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10]

steps:
- name: Checkout Codes
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: '3.10'
- name: Install pypa/build
run: >-
python -m
Expand All @@ -36,7 +43,7 @@ jobs:
--wheel
--outdir dist/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
# if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 05899d9

Please sign in to comment.