From 26ec979e108f0775aab13a22e7fe4de76a2c342a Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Fri, 26 Dec 2025 22:48:04 -0600 Subject: [PATCH] Refactor Gitea workflow to simplify package publishing by replacing manual zip and upload steps with a dedicated publish script. --- .gitea/workflows/publish.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index b83b74d..b8655a6 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -18,16 +18,7 @@ jobs: with: go-version: '1.25.4' - - name: Archive module - run: | - # Create a zip of the module source excluding unnecessary files - zip -r module.zip . -x ".git/*" ".gitea/*" "bin/*" "data/*" "tests/*" "*.zip" "*.db*" "*.hash" "*.out" - - - name: Upload to Gitea Package Registry - run: | - # Use GREG_TOKEN for authentication as requested - # Owner is Quad4-Software based on module path - curl --user "Quad4-Software:${{ secrets.GREG_TOKEN }}" \ - --upload-file module.zip \ - "https://git.quad4.io/api/packages/Quad4-Software/go/upload" - + - name: Publish Package + env: + GREG_TOKEN: ${{ secrets.GREG_TOKEN }} + run: ./scripts/publish.sh