mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Deploy package to PyPi on the master push
This commit is contained in:
4
.github/workflows/deployment.yml
vendored
4
.github/workflows/deployment.yml
vendored
@ -4,8 +4,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
deployment:
|
||||
@ -39,7 +37,7 @@ jobs:
|
||||
run: python setup.py sdist
|
||||
|
||||
- name: Publish package to PyPI
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||
if: ${{ github.ref == 'refs/heads/master' }}
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
user: __token__
|
||||
|
Reference in New Issue
Block a user