AUTOREG - Operação automatizada de Sistemas - SISREG & G-HOSP - por MrPaC6689 #22
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: AUTOREG - Operação automatizada de Sistemas - SISREG & G-HOSP - por MrPaC6689 | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read # Permissão necessária apenas para leitura | |
jobs: | |
deploy: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies and package | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
# Cria a distribuição do Python para publicar no PyPI | |
- name: Build wheel and source distribution | |
run: | | |
python setup.py sdist bdist_wheel | |
# Upload da distribuição Python para o PyPI | |
- name: Upload to PyPI | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPIAPI }} | |
run: | | |
python -m pip install --upgrade twine | |
twine upload dist/*.whl dist/*.tar.gz |