Skip to content

build(deps): bump metatrader5 in the python-requirements group (#19) #50

build(deps): bump metatrader5 in the python-requirements group (#19)

build(deps): bump metatrader5 in the python-requirements group (#19) #50

Workflow file for this run

name: Publish distributions
on:
push:
branches:
- '*'
tags:
- v*
jobs:
build-and-publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install poetry
python -m pip install twine
python -m poetry install
- name: Build and publish to Test PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI }}
run: |
python -m poetry build
twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
- name: Publish to PyPI (if it's a new tag)
if: github.ref == 'refs/heads/master'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m poetry build
twine upload dist/*