Skip to content

Commit

Permalink
Merge pull request #2 from ika-rwth-aachen/feature/publish-pypi-ci-ac…
Browse files Browse the repository at this point in the history
…tion

GitHub CI Workflow to publish to PyPI
  • Loading branch information
lreiher authored Jun 10, 2023
2 parents 20666c4 + 1178c47 commit 4b532c9
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to PyPI

on: push

jobs:
publish:
name: Publish ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
matrix:
package: [docker-run-cli, docker-run-docker-ros]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: python3 -m pip install --user build
- name: Build wheel and tarball
run: python3 -m build --sdist --wheel --outdir dist/ ${{ matrix.package }}
- name: Publish to TestPyPI
uses: pypa/[email protected]
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# *docker-run*``docker run`` and ``docker exec`` with useful defaults

<p align="center">
<img src="https://img.shields.io/github/v/release/ika-rwth-aachen/docker-run"/></a>
<img src="https://img.shields.io/github/license/ika-rwth-aachen/docker-run"/>
<a href="https://pypi.org/project/docker-run-cli/"><img src="https://img.shields.io/pypi/dm/docker-run-cli?color=blue&label=PyPI%20downloads"/>
<a href="https://pypi.org/project/docker-run-cli/"><img src="https://img.shields.io/pypi/v/docker-run-cli?label=PyPI"/></a>
<a href="https://pypi.org/project/docker-run-cli/"><img src="https://img.shields.io/pypi/dm/docker-run-cli?color=blue&label=PyPI%20downloads"/></a>
</p>

*docker-run* is a CLI tool for simplified interaction with Docker images. Use it to easily start and attach to Docker containers with useful predefined arguments.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4b532c9

Please sign in to comment.