From 451ee0d031e6c093e6b3e2852de87c945ecdf43b Mon Sep 17 00:00:00 2001 From: Altareos Date: Sun, 13 Jul 2025 23:26:42 +0200 Subject: [PATCH] actions --- .gitea/workflows/build-push.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/build-push.yml diff --git a/.gitea/workflows/build-push.yml b/.gitea/workflows/build-push.yml new file mode 100644 index 0000000..02d05e4 --- /dev/null +++ b/.gitea/workflows/build-push.yml @@ -0,0 +1,33 @@ +name: Build and Push to Gitea + +on: + push: + branches: [ main, master ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: x86_64-unknown-uefi + override: true + + - name: Build release + uses: actions-rs/cargo@v1 + with: + command: build + args: --release --target x86_64-unknown-uefi + + - name: Push to generic package repository + run: | + curl --user altareos:${{ secrets.PACKAGE_TOKEN }} \ + --upload-file target/x86_64-unknown-uefi/release/barnacle.efi \ + "https://gitea.altareos.com/api/packages/altareos/generic/barnacle/$(cargo pkgid|sed 's@^.*#@@')/barnacle.efi" \ No newline at end of file