.github/workflows/release.yml #52
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
on: | |
push: | |
schedule: | |
- cron: "0 0 * * 5" | |
jobs: | |
create_release: | |
name: Create Release ISO | |
runs-on: self-hosted | |
defaults: | |
run: | |
working-directory: ${{ github.workspace }}/${{ github.run_id }} | |
timeout-minutes: 10080 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
clean: 'false' | |
submodules: 'true' | |
path: ${{ github.workspace }}/${{ github.run_id }} | |
- name: Build ISO | |
run: | | |
sudo bash -x ./build.sh | |
- name: Create md5sum | |
run: | | |
for f in *.iso; do [ -e "$f" ] && md5sum "$f" > "${f}.md5"; done | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ISO | |
if-no-files-found: error | |
path: | | |
${{ github.workspace }}/${{ github.run_id }}/*.iso | |
${{ github.workspace }}/${{ github.run_id }}/*.md5 | |
- name: Clean Build Directory | |
if: always() | |
run: | | |
sudo umount -l $(grep ${GITHUB_WORKSPACE} /proc/mounts | cut -f2 -d" " | sort -r) || true | |
sudo rm -rf ${GITHUB_WORKSPACE}/squashfs | |
sudo rm -rf ${GITHUB_WORKSPACE}/iso |