Start of a github action to publish to docker and pypi

This commit is contained in:
Geoff Taylor 2021-10-14 12:17:18 +01:00 committed by GitHub
parent 9cc25a7f2e
commit 9a293dd4b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

27
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Publish to Docker and Pypi
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build the Docker image
run: make docker-build
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.8
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}