2024-02-18 18:16:05 +00:00
|
|
|
#
|
|
|
|
# .github/workflows/release.yml
|
|
|
|
#
|
2024-02-18 19:13:42 +00:00
|
|
|
---
|
2024-02-18 18:16:05 +00:00
|
|
|
name: release
|
|
|
|
on:
|
2024-02-18 21:09:23 +00:00
|
|
|
push:
|
2024-02-18 18:16:05 +00:00
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: macos-14
|
|
|
|
steps:
|
2024-02-18 19:13:42 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
# A fetch-depth of 0 includes all history and tags for script/version
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Bootstrap
|
|
|
|
run: script/bootstrap
|
2024-02-19 02:45:04 +00:00
|
|
|
|
|
|
|
# Important to trigger a universal build first as package just works with
|
|
|
|
# the `mas` binary in finds in the build dir.
|
|
|
|
- name: Build Universal
|
|
|
|
run: script/build --universal
|
|
|
|
- name: macOS Package
|
|
|
|
run: script/package
|
|
|
|
- name: Upload mas.pkg
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
if-no-files-found: error
|
|
|
|
name: mas.pkg
|
|
|
|
path: .build/mas.pkg
|
|
|
|
|
|
|
|
- name: Homebrew Bottles for mas tap
|
|
|
|
run: script/bottle
|