Skip to content

Add elm327-emulator.exe in the Release folder #23

Add elm327-emulator.exe in the Release folder

Add elm327-emulator.exe in the Release folder #23

Workflow file for this run

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
###########################################################################
# ELM327-emulator
# ELM327 Emulator for testing software interfacing OBDII via ELM327 adapter
# https://github.com/Ircama/ELM327-emulator
# (C) Ircama 2021 - CC-BY-NC-SA-4.0
###########################################################################
name: Upload ELM327-emulator Package to PyPI and TestPyPI
#on:
# release:
# types: [created]
#on: [push]
on:
push:
tags:
- 'v*'
jobs:
build-n-publish:
name: Build and publish Python to PyPI and TestPyPI
runs-on: ubuntu-latest
# Checking out the project and building distributions
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
# This will download your repository into the CI runner and then install and activate Python
- name: Install upgrade pip
run: >-
python -m
pip install
--upgrade pip
- name: Install dependencies
run: >-
python -m
pip install pyyaml python-daemon obd setuptools wheel twine
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python setup.py sdist bdist_wheel
# This will create the /dist directory including the package build.
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload --repository pypi dist/*
twine upload --repository testpypi dist/*
# This will publish the /dist directory.