This commit is contained in:
Florian Bezannier
2022-04-02 12:11:43 +02:00
parent d01f9df34f
commit 888abe3141
5 changed files with 477 additions and 414 deletions
+14 -4
View File
@@ -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
-1
View File
@@ -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