diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 4ec89f8..3281904 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,12 +1,25 @@ name: Build and Push on: - release: - types: [published] + push: + tags: + - 'v*' jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Create Gitea Release + run: | + curl -sf -X POST \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{"tag_name": "${{ github.ref_name }}", "name": "Release ${{ github.ref_name }}", "body": "Automated release for ${{ github.ref_name }}"}' \ + "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases" + build: runs-on: ubuntu-latest + needs: release steps: - uses: actions/checkout@v4