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

This commit is contained in:
Neale Pickett 2024-01-04 20:19:31 -07:00
parent 6d8256bb16
commit 0045cc8489
2 changed files with 14 additions and 0 deletions

13
.gitea/publish.sh Executable file
View File

@ -0,0 +1,13 @@
#! /bin/sh
PACKAGE=${GITHUB_REPOSITORY#*/}
VERSION=$(date +%Y-%m-%dt%H.%M.%S)
for path in "$@"; do
fn=$(basename "$path")
curl \
--user "$GITHUB_ACTOR:$GITHUB_TOKEN" \
--upload-file "$path" \
$GITHUB_API_URL/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION/$fn
# $GITHUB_SERVER_URL/api/packages/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION/$fn
done

View File

@ -7,3 +7,4 @@ jobs:
steps: steps:
- run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY . - run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
- run: .gitea/build.sh - run: .gitea/build.sh
- run: .gitea/publish.sh out/*