Skip to content

Commit

Permalink
[ci] fix creating interactor package
Browse files Browse the repository at this point in the history
  • Loading branch information
delfick committed Mar 15, 2021
1 parent b18779f commit cac617f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release-interactor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
skippypi:
description: 'Skip making pypi package'
default: '0'
skipdocker:
description: 'Skip making docker image'
default: '0'

name: Release Photons Interactor

Expand Down Expand Up @@ -45,7 +48,7 @@ jobs:
- id: create_release
uses: actions/create-release@v1
if: github.event.inputs == '0'
if: github.event.inputs.skippypi == '0'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -58,7 +61,7 @@ jobs:

- id: upload-release-asset
uses: actions/upload-release-asset@v1
if: github.event.inputs == '0'
if: github.event.inputs.skippypi == '0'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -68,7 +71,7 @@ jobs:
asset_content_type: application/tar+gzip

- uses: pypa/[email protected]
if: github.event.inputs == '0'
if: github.event.inputs.skippypi == '0'
with:
user: __token__
password: ${{ secrets.PYPI_INTERACTOR }}
Expand All @@ -93,6 +96,7 @@ jobs:

- name: Build and push
uses: docker/build-push-action@v2
if: github.event.inputs.skipdocker == '0'
with:
context: staging
file: ./staging/Dockerfile
Expand Down

0 comments on commit cac617f

Please sign in to comment.