From a5943f69cad4eeb52699f366b73850f24dbc7d3f Mon Sep 17 00:00:00 2001 From: Minoplhy Date: Thu, 5 Sep 2024 12:23:52 +0000 Subject: [PATCH] gitea-build.yaml: fix: prevent binary from being overwrite --- .github/workflows/gitea-build.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gitea-build.yaml b/.github/workflows/gitea-build.yaml index 8147660..44aa871 100644 --- a/.github/workflows/gitea-build.yaml +++ b/.github/workflows/gitea-build.yaml @@ -18,20 +18,30 @@ jobs: echo "GITEA_TAG=${GITEA_TAG}" >> $GITHUB_ENV echo "GITEA_TAG=${GITEA_TAG}" + + - name: Setup Package Directory + run: | + sudo mkdir -p /gitea-${GITEA_TAG} - name: Run Gitea Build (binary) run: | echo "This Task will be run using the following tag: ${GITEA_TAG}" curl -L https://github.com/minoplhy/scriptbox/raw/main/build_gitea/Linux/build.sh | bash -s -- --git-tag "${GITEA_TAG}" - + + # Copy gitea to package directory(this is due to a broken mechanism in origin script) + sudo cp ~/gitea-binaries/gitea /gitea-${GITEA_TAG}/gitea + - name: Run Gitea Build (static) run: | echo "This Task will be run using the following tag: ${GITEA_TAG}" curl -L https://github.com/minoplhy/scriptbox/raw/main/build_gitea/Linux/build.sh | bash -s -- --git-tag "${GITEA_TAG}" --static + + # Copy gitea to package directory(this is due to a broken mechanism in origin script) + sudo cp -r ~/gitea-binaries/gitea-static /gitea-${GITEA_TAG}/gitea-static - name: Zip Package run: | - tar czvf gitea-${GITEA_TAG}.tar.gz ~/gitea-binaries/ + sudo tar czvf gitea-${GITEA_TAG}.tar.gz /gitea-${GITEA_TAG} - name: Release uses: softprops/action-gh-release@v2