From 1f41cca063ab161a00617febf960575a26423ce0 Mon Sep 17 00:00:00 2001 From: LongQT-sea Date: Sun, 28 Dec 2025 00:48:39 +0700 Subject: [PATCH] docs: render GIF inside expandable details section --- .github/workflows/build.yml | 8 ++++---- README.md | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 57a019c..163e8ba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ on: - 'dmg' jobs: - build-installer: + build-macos-installer-image: runs-on: macos-15-intel timeout-minutes: 70 @@ -56,7 +56,7 @@ jobs: continue-on-error: true run: | if [ "${{ github.event.inputs.image_format }}" == "iso" ]; then - sudo bash mkmaciso "${{ github.event.inputs.macos_version }}" + sudo bash mkmaciso "${{ github.event.inputs.macos_version }}" iso echo "image_name=$(basename *.iso)" >> $GITHUB_OUTPUT else sudo bash mkmaciso "${{ github.event.inputs.macos_version }}" dmg @@ -64,7 +64,7 @@ jobs: fi - name: Upload ISO artifact - if: github.event.inputs.image_format == 'iso' + if: github.event.inputs.image_format == 'iso' && steps.create_image.outcome == 'success' uses: actions/upload-artifact@v5 with: name: ${{ steps.create_image.outputs.image_name }} @@ -73,7 +73,7 @@ jobs: retention-days: 7 - name: Upload DMG artifact - if: github.event.inputs.image_format == 'dmg' + if: github.event.inputs.image_format == 'dmg' && steps.create_image.outcome == 'success' uses: actions/upload-artifact@v5 with: name: ${{ steps.create_image.outputs.image_name }} diff --git a/README.md b/README.md index bd66faa..bf520e4 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,12 @@ curl -s https://raw.githubusercontent.com/LongQT-sea/macos-iso-builder/main/mkma ## Usage > [!TIP] -> Here is a GIF showing how to complete steps 1–7: [.github/how_to_fork_and_run_workflow.gif](https://github.com/LongQT-sea/macos-iso-builder/blob/main/.github/how_to_fork_and_run_workflow.gif) +>
+> Click here to watch a GIF showing how to complete steps 1–7 +> +> ![How to fork and run workflow](https://raw.githubusercontent.com/LongQT-sea/macos-iso-builder/main/.github/how_to_fork_and_run_workflow.gif) +> +>
1. **Fork** this repository (requires a GitHub account). 2. Navigate to the **Actions** tab in your forked repository.