Files
barnacle/.gitea/workflows/build-push.yml
Altareos 451ee0d031
Some checks failed
Build and Push to Gitea / build (push) Failing after 1m5s
actions
2025-07-13 23:26:42 +02:00

33 lines
855 B
YAML

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"