mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-10-30 20:21:54 +00:00 
			
		
		
		
	Publish to pypi on github release published (#287)
* Publish to pypi on github release published, remove testpypi * Remove release tag check
This commit is contained in:
		
							
								
								
									
										13
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,8 +1,7 @@ | ||||
| name: Publish packages | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|     - master | ||||
|   release: | ||||
|     types: [published] | ||||
|  | ||||
| jobs: | ||||
|   build-n-publish: | ||||
| @@ -30,15 +29,7 @@ jobs: | ||||
|         --wheel | ||||
|         --outdir dist/ | ||||
|         . | ||||
|     - name: Publish on test pypi | ||||
|       uses: pypa/gh-action-pypi-publish@master | ||||
|       continue-on-error: true | ||||
|       with: | ||||
|         password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||||
|         repository_url: https://test.pypi.org/legacy/ | ||||
|  | ||||
|     - name: Publish release on pypi | ||||
|       if: startsWith(github.ref, 'refs/tags') | ||||
|       uses: pypa/gh-action-pypi-publish@master | ||||
|       with: | ||||
|         password: ${{ secrets.PYPI_API_TOKEN }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Teemu R
					Teemu R