This commit is contained in:
33
.gitea/workflows/build-push.yml
Normal file
33
.gitea/workflows/build-push.yml
Normal file
@ -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://git.altareos.fr/api/packages/altareos/generic/barnacle/$(cargo pkgid|sed 's@^.*#@@')/barnacle.efi"
|
||||
Reference in New Issue
Block a user