-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a962aa
commit e0ad018
Showing
2 changed files
with
46 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
name: Publish Python | ||
description: "Publish Assets and Report" | ||
inputs: | ||
version: | ||
description: "The published version" | ||
required: true | ||
product_name: | ||
description: "The name of the product" | ||
required: true | ||
files: | ||
description: file to upload | ||
required: true | ||
dry_run: | ||
description: "Whether this is a dry run" | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Run publish script | ||
shell: bash | ||
run: | | ||
set -eux | ||
if [ "$DRY_RUN" == "false" ]; then | ||
echo "Uploading Release Reports" | ||
TARGET=s3://${AWS_BUCKET}/${PRODUCT_NAME}/${VERSION} | ||
aws s3 cp $FILES $TARGET | ||
else | ||
echo "Dry run, not uploading to S3 or creating GitHub Release" | ||
echo "Would upload $FILES" | ||
fi | ||
env: | ||
VERSION: ${{ inputs.version }} | ||
PRODUCT_NAME: ${{ inputs.product_name }} | ||
DRY_RUN: ${{ inputs.dry_run }} | ||
FILES: ${{ inputs.files }} | ||
|
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