-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] fix creating interactor package
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 }} | ||
|
||
|
@@ -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: | ||
|
@@ -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 }} | ||
|
@@ -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 | ||
|