mirror of
https://github.com/platformio/platformio-core.git
synced 2026-01-26 00:42:24 +01:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Deployment
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
- "release/**"
|
|
|
|
jobs:
|
|
deployment:
|
|
runs-on: ubuntu-latest
|
|
environment: production
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: "recursive"
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install tox build
|
|
|
|
- name: Deployment Tests
|
|
env:
|
|
TEST_EMAIL_LOGIN: ${{ secrets.TEST_EMAIL_LOGIN }}
|
|
TEST_EMAIL_PASSWORD: ${{ secrets.TEST_EMAIL_PASSWORD }}
|
|
TEST_EMAIL_IMAP_SERVER: ${{ secrets.TEST_EMAIL_IMAP_SERVER }}
|
|
run: |
|
|
tox -e testcore
|
|
|
|
- name: Build Python distributions
|
|
run: python -m build
|
|
|
|
- name: Publish package to PyPI
|
|
if: ${{ github.ref == 'refs/heads/master' }}
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|