Merge pull request #10 from nim65s/devel
Publish on PyPI & Docker Hub with Github Actions
This commit is contained in:
		
				commit
				
					
						59e98b99a7
					
				
			
		
					 5 changed files with 53 additions and 1 deletions
				
			
		
							
								
								
									
										28
									
								
								.github/workflows/docker-hub.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/docker-hub.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,28 @@
 | 
				
			||||||
 | 
					name: Publish
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					      - 'master'
 | 
				
			||||||
 | 
					    tags:
 | 
				
			||||||
 | 
					      - 'v*'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  docker-hub:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					      - uses: docker/metadata-action@v3
 | 
				
			||||||
 | 
					        id: meta
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          images: nim65s/matrix-webhook
 | 
				
			||||||
 | 
					      - uses: docker/login-action@v1
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          username: nim65s
 | 
				
			||||||
 | 
					          password: ${{ secrets.DOCKERHUB_TOKEN }}
 | 
				
			||||||
 | 
					      - uses: docker/build-push-action@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          context: .
 | 
				
			||||||
 | 
					          push: true
 | 
				
			||||||
 | 
					          tags: ${{ steps.meta.outputs.tags }}
 | 
				
			||||||
 | 
					          labels: ${{ steps.meta.outputs.labels }}
 | 
				
			||||||
							
								
								
									
										15
									
								
								.github/workflows/pypi.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/pypi.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,15 @@
 | 
				
			||||||
 | 
					name: PyPI
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    tags:
 | 
				
			||||||
 | 
					      - 'v*'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  pypi:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					      - run: pip install -U poetry twine wheel
 | 
				
			||||||
 | 
					      - run: poetry build
 | 
				
			||||||
 | 
					      - run: twine upload --non-interactive -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*
 | 
				
			||||||
| 
						 | 
					@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## [Unreleased]
 | 
					## [Unreleased]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Publish on PyPI & Docker Hub with Github Actions
 | 
				
			||||||
 | 
					  in [#10](https://github.com/nim65s/matrix-webhook/pull/10)
 | 
				
			||||||
 | 
					  by [@nim65s](https://github.com/)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## [3.0.0] - 2021-07-18
 | 
					## [3.0.0] - 2021-07-18
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Simplify code
 | 
					- Simplify code
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,6 +2,8 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[](https://github.com/nim65s/matrix-webhook/actions/workflows/test.yml)
 | 
					[](https://github.com/nim65s/matrix-webhook/actions/workflows/test.yml)
 | 
				
			||||||
[](https://github.com/nim65s/matrix-webhook/actions/workflows/lint.yml)
 | 
					[](https://github.com/nim65s/matrix-webhook/actions/workflows/lint.yml)
 | 
				
			||||||
 | 
					[](https://hub.docker.com/r/nim65s/matrix-webhook)
 | 
				
			||||||
 | 
					[](https://pypi.org/project/matrix-webhook/)
 | 
				
			||||||
[](https://github.com/psf/black)
 | 
					[](https://github.com/psf/black)
 | 
				
			||||||
[](https://codecov.io/gh/nim65s/matrix-webhook)
 | 
					[](https://codecov.io/gh/nim65s/matrix-webhook)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,9 +4,12 @@ version = "3.0.0"
 | 
				
			||||||
description = "Post a message to a matrix room with a simple HTTP POST"
 | 
					description = "Post a message to a matrix room with a simple HTTP POST"
 | 
				
			||||||
authors = ["Guilhem Saurel <guilhem.saurel@laas.fr>"]
 | 
					authors = ["Guilhem Saurel <guilhem.saurel@laas.fr>"]
 | 
				
			||||||
license = "BSD-2-Clause"
 | 
					license = "BSD-2-Clause"
 | 
				
			||||||
 | 
					readme = "README.md"
 | 
				
			||||||
 | 
					homepage = "https://github.com/nim65s/matrix-webhook"
 | 
				
			||||||
 | 
					repository = "https://github.com/nim65s/matrix-webhook.git"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[tool.poetry.dependencies]
 | 
					[tool.poetry.dependencies]
 | 
				
			||||||
python = "^3.9"
 | 
					python = "^3.8"
 | 
				
			||||||
Markdown = "^3.3.4"
 | 
					Markdown = "^3.3.4"
 | 
				
			||||||
matrix-nio = "^0.18.3"
 | 
					matrix-nio = "^0.18.3"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue