This repository has been archived by the owner on May 12, 2024. It is now read-only.
Fixed daily build script #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily Build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Run build script | ||
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 | ||
- name: Run build script | ||
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 | ||
schedule: | ||
- cron: '0 0 * * *' # Runs at midnight every day | ||
name: Daily Build Trigger | ||
job-name: daily_build |