Skip to content

Commit

Permalink
Split the deploy workflow into docker and pypi (#1843)
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Cadair committed Oct 11, 2021
1 parent bce356e commit 9a48364
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
@@ -1,4 +1,4 @@
name: Upload Python Package
name: Upload Docker Container

on:
release:
Expand All @@ -9,21 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish python package
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v3
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/deploy-pypi.yml
@@ -0,0 +1,26 @@
name: Upload Python Package

on:
release:
types: [released]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish python package
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*

0 comments on commit 9a48364

Please sign in to comment.