Update issue templates #5
Workflow file for this run
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: CD | |
on: | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Realiza o checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Instala Poetry | |
uses: Gr1N/setup-poetry@v7 | |
- name: Instala dependências | |
run: poetry install --no-dev | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} | |
with: | |
tag_name: v${{ steps.get_version.outputs.version }} | |
release_name: Release ${{ steps.get_version.outputs.version }} | |
body: | | |
Release ${{ steps.get_version.outputs.version }} | |
- name: Get Version | |
id: get_version | |
run: | | |
echo "::set-output name=version::$(python -c 'import toml; print(toml.load("pyproject.toml")["tool"]["poetry"]["version"])')" | |
- name: Build and publish to pypi | |
uses: JRubics/poetry-publish@v1.9 | |
with: | |
pypi_token: ${{ secrets.TOKEN_PYPI_PYFLUNT }} |