diff --git a/.gitea/workflows/compile.yaml b/.gitea/workflows/compile.yaml index 31c75b1..8f634ca 100644 --- a/.gitea/workflows/compile.yaml +++ b/.gitea/workflows/compile.yaml @@ -23,10 +23,14 @@ jobs: - name: Compile binary run: make - - name: Upload firmware to Gitea Generic Registry - run: | - VERSION="${GITEA_SHA:-$GITHUB_SHA}" + - name: Generate checksum + run: sha256sum build/fan_controller.bin > build/fan_controller.bin.sha256 - curl --user "${{ gitea.actor }}:${{ vars.OCI_ACCESS_TOKEN }}" \ - --upload-file build/fan_controller.bin \ - "https://git.drath.cc/api/packages/${{ gitea.actor }}/generic/firmware/${VERSION}/fan_controller.bin" \ No newline at end of file + - name: Create Release and upload assets + uses: softprops/action-gh-release@v1 + with: + files: | + build/firmware.bin + build/firmware.bin.sha256 + env: + GITHUB_TOKEN: ${{ vars.OCI_ACCESS_TOKEN }} \ No newline at end of file