diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index ea4dc0c1..57d186b8 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -27,10 +27,11 @@ jobs: - name: Package build output run: | - zip -r release.zip ./dist # Adjust the path to your build output directory + cd ./dist + zip -r ../release.zip . # Adjust the path to your build output directory - name: Upload release asset run: | - curl -X POST -H "Content-Type: application/zip" \ + curl -X PATCH -H "Content-Type: application/zip" \ --data-binary @release.zip \ "${{ .GITEA_API_URL }}/repos/${{ .GITEA_REPO_OWNER }}/${{ .GITEA_REPO_NAME }}/releases/${{ .GITEA_RELEASE_ID }}/assets?name=release.zip"