try to publish artifacts
Mockband / build (push) Successful in 18s
Details
Mockband / build (push) Successful in 18s
Details
This commit is contained in:
parent
6d8256bb16
commit
0045cc8489
|
@ -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
|
|
@ -7,3 +7,4 @@ jobs:
|
|||
steps:
|
||||
- run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
||||
- run: .gitea/build.sh
|
||||
- run: .gitea/publish.sh out/*
|
||||
|
|
Loading…
Reference in New Issue