mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-24 02:16:14 +00:00
ci: fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Publish Docker image
|
||||
name: Publish Docker image and pypi package
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
@@ -9,10 +9,20 @@ jobs:
|
||||
name: Push to pypi
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Build and publish to pypi
|
||||
uses: JRubics/poetry-publish@v1.10
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
pypi_token: ${{ secrets.PYPI_TOKEN }}
|
||||
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
|
||||
|
||||
@@ -7,7 +7,6 @@ on:
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
Reference in New Issue
Block a user