diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 45fafee..8e3ba0b 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -89,15 +89,14 @@ jobs: uses: docker/build-push-action@v5 with: context: . - dockerfile: infrastructure/nginx/Dockerfile + file: infrastructure/nginx/Dockerfile push: true tags: ${{ steps.meta-nginx.outputs.tags }} labels: ${{ steps.meta-nginx.outputs.labels }} - - name: Create Release - uses: softprops/action-gh-release@v1 - with: - generate_release_notes: true - tag_name: ${{ steps.version.outputs.version }} - env: - GITHUB_TOKEN: ${{ secrets.CI_REGISTRY_TOKEN }} + - name: Create Release on Gitea + run: | + curl -X POST "$CI_SERVER_URL/api/v1/repos/$CI_REPO_OWNER/$CI_REPO_NAME/releases" \ + -H "Authorization: token ${{ secrets.CI_REGISTRY_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d "{\"tag_name\":\"${{ steps.version.outputs.version }}\",\"name\":\"${{ steps.version.outputs.version }}\",\"body\":\"Release ${{ steps.version.outputs.version }}\n\nSee [CHANGELOG.md](https://git.allucanget.biz/zwitschi/linearvoid/src/branch/main/CHANGELOG.md) for details.\",\"draft\":false,\"prerelease\":false}"