From 14316474651c59e7a949427481c3fc62b42ff038 Mon Sep 17 00:00:00 2001 From: Drath Date: Thu, 23 Apr 2026 01:21:38 +0200 Subject: [PATCH] release? --- .gitea/workflows/compile.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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