Add MacOS app bundle workflow

This commit is contained in:
Michael Bucari-Tovo 2023-02-11 21:18:21 -07:00
parent 0fb580f1a5
commit 3bca495521
6 changed files with 160 additions and 1 deletions

39
.github/workflows/bundle.yml vendored Normal file
View file

@ -0,0 +1,39 @@
# bundle.yml
# Reusable workflow that builds the MacOS app bundle.
---
name: bundle
on:
workflow_call:
inputs:
version:
type: string
description: 'Version number'
required: true
env:
FILE_NAME: "Libation.${{ inputs.version }}-macos-chardonnay"
jobs:
build_bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: "${{ env.FILE_NAME }}.tar.gz"
- name: Build .app bundle
id: bundle
run: |
chmod +rwx ./Scripts/targz2bundle.sh
./Scripts/targz2bundle.sh "${{ env.FILE_NAME }}.tar.gz" ${{ inputs.version }}
- name: Publish .app bundle
uses: actions/upload-artifact@v3
with:
name: "Libation.app-${{ inputs.version }}.tar.gz"
path: "Libation.app-${{ inputs.version }}.tar.gz"
if-no-files-found: error

View file

@ -39,9 +39,15 @@ jobs:
uses: ./.github/workflows/deb.yml
with:
version: ${{ needs.prerelease.outputs.version }}
bundle:
needs: [prerelease,build]
uses: ./.github/workflows/bundle.yml
with:
version: ${{ needs.prerelease.outputs.version }}
release:
needs: [prerelease,build,deb]
needs: [prerelease,build,deb,bundle]
runs-on: ubuntu-latest
steps:
- name: Download artifacts