Skip to content

Update releases.yml #13

Update releases.yml

Update releases.yml #13

Workflow file for this run

name: Releases
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build OVA
run: |
sudo apt update
sudo apt -y install debos p7zip qemu-utils zerofree
cd $GITHUB_WORKSPACE
chmod +x scripts/tl/*.sh
chmod +x scripts/*.sh
chmod +x *.sh
docker build -t tlvm-builder .
docker run --rm --interactive --net host --privileged --group-add $(stat -c '%g' /dev/kvm) --volume $(pwd):/recipes -v $(pwd)/images/:/images --workdir /recipes tlvm-builder ./build.sh -v virtualbox -f ova
docker run --rm --interactive --net host --privileged --group-add $(stat -c '%g' /dev/kvm) --volume $(pwd):/recipes -v $(pwd)/images/:/images --workdir /recipes tlvm-builder ./build.sh -v vmware -f vmware
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
files: "images/*.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}