Skip to content

Update main.yml

Update main.yml #20

Workflow file for this run

name: monthly-build-x86_64
on:
push:
branches:
- main
schedule:
- cron: "0 0 1 1-12 *"
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-22.04
container:
image: debian:latest
volumes:
- /proc:/proc
options: --privileged
steps:
- name: Get source
uses: actions/checkout@v4
- name: Build system
run: |
apt update -y
apt-get install -y live-build squashfs-tools syslinux-common syslinux-utils xorriso isolinux git curl
git clone https://github.com/Blade-OS/os.git
cd os/
./build
mv blade/blade-"$(date -u +%y%m%d)"-amd64.hybrid.iso ~/blade.iso
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: image-x86_64
path: ~/blade.iso
if-no-files-found: warn
retention-days: 90
compression-level: 0
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "bookworm-preview"
prerelease: true
title: "Bookworm automated preview build"
files: |
image-x86_64.zip