Skip to content

Basic support for Sonoma and Sequoia #274

Basic support for Sonoma and Sequoia

Basic support for Sonoma and Sequoia #274

Workflow file for this run

name: Installer Build
on:
push:
branches:
- '**'
paths-ignore:
- '**.md'
tags-ignore: # prevent double action on releases
- 'v**'
pull_request:
release:
types: [created]
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache DMGs
id: cache-dmgs
uses: actions/cache@v4
with:
path: dmgs
key: packages-dmg
- name: Download Packages
if: steps.cache-dmgs.outputs.cache-hit != 'true'
run: |
mkdir dmgs
curl -L -o dmgs/Packages.dmg http://s.sudre.free.fr/Software/files/Packages.dmg
- name: Install Packages
run: |
hdiutil attach dmgs/Packages.dmg
sudo installer -pkg /Volumes/Packages*/*.pkg -target /
hdiutil detach /Volumes/Packages*
- name: Build Package
run: Installer/build.sh
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Installer
path: Installer/build/HaCMini.pkg
release:
name: Release
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'release'
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: Installer
- name: Upload Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: HaCMini.pkg
asset_name: HaCMini.pkg
asset_content_type: application/octet-stream