diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4e8f0c..4c3e693 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,6 +4,8 @@ on: push: branches: - main + schedule: + - cron: '0 0 * * *' # Everyday at midnight jobs: build: @@ -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