diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ce2f6a..166417f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,12 @@ jobs: - name: Build Project run: dotnet build --configuration Release SpotifyHonorific/SpotifyHonorific.csproj -p:AssemblyVersion=${{ github.ref_name }} + - name: Create Release Asset + run: | + cd SpotifyHonorific/bin/Release + zip -r ../../../latest.zip . + cd ../../.. + - name: Create Release uses: actions/create-release@v1 id: create_release @@ -45,7 +51,7 @@ jobs: run: | curl \ -X POST \ - -H "Authorization: token ${{ gitea.token }}" \ + -H "Authorization: token ${{ github.token }}" \ -H "Content-Type: application/zip" \ - --data-binary @SpotifyHonorific/bin/Release/SpotifyHonorific/latest.zip \ + --data-binary @latest.zip \ "${{ steps.create_release.outputs.upload_url }}?name=latest.zip" \ No newline at end of file