diff --git a/.gitea/workflows/test-and-build.yml b/.gitea/workflows/test-and-build.yml index b037e9c..7c47ac3 100644 --- a/.gitea/workflows/test-and-build.yml +++ b/.gitea/workflows/test-and-build.yml @@ -1,10 +1,9 @@ name: Test, Build, and Release -on: +on: push: - branches: - - main - - feat/cut-releases + tags: + - '*' jobs: test: @@ -14,8 +13,7 @@ jobs: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} steps: - - name: Checkout code - uses: actions/checkout@v3 + - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -80,12 +78,9 @@ jobs: with: go-version: '>=1.20.1' - - name: Release binary - uses: https://gitea.com/actions/release-action@main - with: - files: |- - ./result/bin/tricu - api_key: '${{ secrets.RELEASE_TOKEN }}' - tag: $(git rev-parse --short HEAD) - title: "Release $(git rev-parse --short HEAD)" - note: "Automated release for commit $(git rev-parse --short HEAD)" + - name: Release binary + uses: https://gitea.com/actions/release-action@main + with: + files: |- + ./result/bin/tricu + api_key: '${{ secrets.RELEASE_TOKEN }}'