workflows: publish and push artifacts
This commit is contained in:
@@ -2,7 +2,9 @@ name: Publish collection to Galaxy
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- "v*"
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
@@ -20,3 +22,12 @@ jobs:
|
||||
# - uses: actions/gitea-upload-artifact@v3
|
||||
# with:
|
||||
# path: /workspace/itik/bgwaf/seb4itik/byow/seb4itik-byow-0.1.2.tar.gz
|
||||
- name: Push artifacts
|
||||
run: |
|
||||
GITEA_REPO_OWNER=$(echo $GITEA_REPOSITORY | cut -d"/" -f1) && \
|
||||
GITEA_REPO_NAME=$(echo $GITEA_REPOSITORY | cut -d"/" -f2) && \
|
||||
curl \
|
||||
-X PUT \
|
||||
-H "Authorization: token ${{ secrets.CI_GITEA_PACKAGES_TOKEN }}" \
|
||||
--upload-file seb4itik-byow-${VER}.tar.gz \
|
||||
$GITEA_SERVER_URL/api/packages/${GITEA_REPO_OWNER}/generic/${GITEA_REPO_NAME}/${GITEA_SHA}/seb4itik-byow-${VER}.tar.gz
|
||||
|
||||
Reference in New Issue
Block a user