Skip to content

Merge pull request #6 from Assaoka/Continuous_Deployment_(CD) #6

Merge pull request #6 from Assaoka/Continuous_Deployment_(CD)

Merge pull request #6 from Assaoka/Continuous_Deployment_(CD) #6

Workflow file for this run

name: Deploy to PyPI on Merge
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build pytest
- name: Run Smoke Test
run: |
pip install .
python -c "from rko import RKO; print('Módulo importado com sucesso!')"
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1