try to publish artifacts
Mockband / build (push) Successful in 15s Details

This commit is contained in:
Neale Pickett 2024-01-04 21:01:53 -07:00
parent b1118e3894
commit b3cc1252e1
1 changed files with 2 additions and 1 deletions

View File

@ -3,11 +3,12 @@
set -e set -e
PACKAGE=${GITHUB_REPOSITORY#*/} PACKAGE=${GITHUB_REPOSITORY#*/}
VERSION=$(date +%Y-%m-%dt%H.%M.%S) VERSION=$GITHUB_REF_NAME.$(date +%Y-%m-%dt%H.%M.%S)
for path in "$@"; do for path in "$@"; do
fn=$(basename "$path") fn=$(basename "$path")
curl \ curl \
--include \
--user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \ --user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \
--upload-file "$path" \ --upload-file "$path" \
$GITHUB_SERVER_URL/api/packages/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION/$fn $GITHUB_SERVER_URL/api/packages/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION/$fn