From ffc91de77e93e2f601fff46b0d7f79824dbf8e4e Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 17 Sep 2024 13:49:46 -0400 Subject: [PATCH] Update CI workflow for main branch and release events --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79fa96b..cc243f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,11 +84,11 @@ jobs: echo "Uploading build artifact to GitHub release" curl \ -X POST \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -H "Content-Type: application/zip" \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Content-Type: application/octet-stream" \ --data-binary @"$BUILD_FILE" \ "$GITHUB_API_URL/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets?name=$(basename $BUILD_FILE)" else echo "Build artifact not found" exit 1 - fi \ No newline at end of file + fi