Skip to content

iso_build

iso_build #138

Workflow file for this run

name: iso_build
on:
workflow_dispatch:
schedule:
- cron: '30 6 1 * *'
jobs:
prepare-release:
runs-on: ubuntu-20.04
steps:
- uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # 0.12.0
with:
access_token: ${{ github.token }}
- id: time
uses: nanzm/get-time-action@887e4db9af58ebae64998b7105921b816af77977 # v2.0
with:
format: 'YYYYMMDDHHmm'
outputs:
release_tag: ${{ steps.time.outputs.time }}
release:
runs-on: ubuntu-20.04
needs: prepare-release
strategy:
matrix:
##### EDIT ME #####
EDITION: [gnome-next, xfce, kde-dev]
BRANCH: [testing]
SCOPE: [minimal,full]
###################
steps:
- uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # 0.12.0
with:
access_token: ${{ github.token }}
- id: image-build
uses: manjaro/manjaro-iso-action@main
with:
edition: ${{ matrix.edition }}
branch: ${{ matrix.branch }}
scope: ${{ matrix.scope }}
version: "24.0"
kernel: linux68
code-name: "Wynsdey"
release-tag: ${{ needs.prepare-release.outputs.release_tag }}
- name: rollback
if: ${{ failure() || cancelled() }}
run: |
echo ${{ github.token }} | gh auth login --with-token
gh release delete ${{ needs.prepare-release.outputs.release_tag }} -y --repo ${{ github.repository }}
git push --delete origin ${{ needs.prepare-release.outputs.release_tag }}