Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinAlavik authored Feb 20, 2024
1 parent 1828ebf commit 91d0d4b
Showing 1 changed file with 9 additions and 33 deletions.
42 changes: 9 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # Everyday at midnight

jobs:
build:
Expand All @@ -13,42 +15,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run build script
- name: Install dependencies
run: |
chmod +x ./tools/build.sh
./tools/build.sh
- name: Upload ISO artifact
uses: actions/upload-artifact@v2
with:
name: image.iso
path: ./image.iso

daily_build:
runs-on: ubuntu-latest

needs: build

steps:
- name: Checkout repository
uses: actions/checkout@v2
sudo apt-get update
sudo apt-get install -y make tar xorriso binutils
- name: Run build script
run: |
chmod +x ./tools/build.sh
./tools/build.sh
run: ./tools/build.sh

- name: Upload ISO artifact
- name: Archive ISO
uses: actions/upload-artifact@v2
with:
name: image.iso
path: ./image.iso

schedule:
runs-on: ubuntu-latest
name: Daily Build Trigger
steps:
- name: Trigger Daily Build
run: echo "Triggering daily build"
schedule:
cron: '0 0 * * *'
name: Paradox-Public-$(date +'%Y%m%d').iso
path: image.iso

0 comments on commit 91d0d4b

Please sign in to comment.