From f36d025b635fbae93f30b7121984786d56f5367a Mon Sep 17 00:00:00 2001 From: DCreason Date: Wed, 25 Mar 2026 00:23:15 +0000 Subject: [PATCH] stop vibe, just code --- .gitea/workflows/build.yaml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f996259..97bff65 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,12 +1,8 @@ name: Build and Publish on: - push: - branches: - - main - tags: - - 'v*' - pull_request: + release: + types: [created] jobs: build: @@ -29,17 +25,9 @@ jobs: mkdir -p dist go build -v -o dist/samba-configer . - - name: Upload package - if: startsWith(gitea.ref, 'refs/tags/') - env: - GITEA_ACTOR: ${{ gitea.actor }} - PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }} - SERVER_URL: ${{ gitea.server_url }} - REPOSITORY_OWNER: ${{ gitea.repository_owner }} - VERSION: ${{ gitea.ref_name }} - run: | - test -n "$PACKAGE_TOKEN" || { echo "PACKAGE_TOKEN is empty"; exit 1; } - curl --fail-with-body \ - --user "${GITEA_ACTOR}:${PACKAGE_TOKEN}" \ - --upload-file dist/samba-configer \ - "${SERVER_URL}/api/packages/${REPOSITORY_OWNER}/generic/samba-configer/${VERSION}/samba-configer-linux-amd64" + - name: Create/Update Release and Upload Artifacts + uses: actions/release-action@v2 # Use Gitea's release action + with: + tag_name: ${{ gitea.ref_name }} + files: | + dist/samba-configer