Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Add PyPI Continuous Delivery pipeline #27

Merged
merged 1 commit into from
Aug 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI/CD

on:
push:
pull_request:

jobs:

build-n-publish:
name: Python Packaging
runs-on: ubuntu-20.04
strategy:
matrix:
python-version:
- 3.6

steps:

- uses: actions/checkout@master
- run: git fetch --prune --unshallow

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install basic tools
run: pip install wheel

- name: Create sdist
run: python setup.py sdist

- name: Install sdist
run: pip -v install dist/*

- name: Publish to PyPI
if: |
github.repository == 'robotology/gym-ignition' &&
github.ref == 'refs/heads/master' &&
github.event_name != 'pull_request'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}