Skip to content

Basic support for Sonoma and Sequoia #266

Basic support for Sonoma and Sequoia

Basic support for Sonoma and Sequoia #266

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@v1
- name: Cache DMGs
id: cache-dmgs
uses: actions/cache@v1
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*/packages/Packages.pkg -target /
hdiutil detach /Volumes/Packages*
- name: Build Package
run: Installer/build.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
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@v2
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