iso_build #115
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: iso_build | |
on: | |
workflow_dispatch: | |
# schedule: | |
# - cron: '30 2 * * *' | |
jobs: | |
prepare-release: | |
runs-on: self-hosted | |
steps: | |
- name: Allow workflow to be cancelled | |
uses: styfle/cancel-workflow-action@0.9.0 | |
with: | |
access_token: ${{ github.token }} | |
- name: Get time | |
id: time | |
uses: nanzm/get-time-action@v1.1 | |
with: | |
format: 'DDMMYYYYHHmm' | |
outputs: | |
release_tag: ${{ steps.time.outputs.time }} | |
build-release: | |
runs-on: self-hosted | |
needs: [prepare-release] | |
permissions: | |
contents: write | |
container: | |
image: archlinux:latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Check dependencies | |
run: | | |
./iso/prep.sh | |
- name: Build ISO | |
run: | | |
./iso/build.sh | |
- name: List files | |
run: | | |
sudo chmod -R 777 isoOUT | |
ls -lasih isoOUT | |
- name: Upload Releases only if build was successful | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ needs.prepare-release.outputs.release_tag }} | |
files: | | |
isoOUT/*.part* | |
isoOUT/*.sha256 | |
isoOUT/*.txt | |
fail_on_unmatched_files: true |