mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 17:36:15 +00:00
ci: publish with tag as version
This commit is contained in:
@@ -10,12 +10,19 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build and publish to pypi
|
||||
uses: JRubics/poetry-publish@v1.10
|
||||
with:
|
||||
pypi_token: ${{ secrets.PYPI_TOKEN }}
|
||||
ignore_dev_requirements: "yes"
|
||||
extra_build_dependency_packages: "libblas3 liblapack3 liblapack-dev libblas-dev gfortran libatlas-base-dev"
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
sudo apt-get install libblas3 liblapack3 liblapack-dev libblas-dev gfortran libatlas-base-dev
|
||||
- name: Build and publish
|
||||
run: |
|
||||
poetry version $(git describe --tags --abbrev=0)
|
||||
poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }}
|
||||
push_to_registry:
|
||||
name: Push Docker image to Docker Hub
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
FROM debian:bullseye-slim AS builder
|
||||
ARG PYTHON_DEP
|
||||
RUN BUILD_DEP='python3-pip python3-setuptools python3-dev libblas-dev liblapack-dev gfortran libffi-dev libxml2-dev libxslt1-dev' ; \
|
||||
RUN BUILD_DEP='python3-pip python3-setuptools python3-dev libblas-dev liblapack-dev gfortran libffi-dev libxml2-dev libxslt1-dev make automake gcc g++ subversion' ; \
|
||||
apt-get update && apt-get install -y --no-install-recommends $BUILD_DEP $PYTHON_DEP;
|
||||
RUN pip3 install --upgrade pip
|
||||
RUN pip3 install poetry
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "psa-car-controller"
|
||||
version = "3.0.0"
|
||||
version = "3.0.0rc0"
|
||||
description = "This is a python program to control a psa car with connected_car v4 api."
|
||||
authors = ["Florian Bezannier <florian.bezannier@hotmail.fr>"]
|
||||
license = "GPL-3.0"
|
||||
|
||||
Reference in New Issue
Block a user