mirror of
https://github.com/mas-cli/mas
synced 2024-11-23 03:53:09 +00:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
#
|
|
# .github/workflows/release.yml
|
|
#
|
|
---
|
|
name: release
|
|
on:
|
|
push:
|
|
release:
|
|
types: [published]
|
|
jobs:
|
|
release:
|
|
runs-on: macos-14
|
|
steps:
|
|
- 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
|
|
|
|
# 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
|
|
- name: 🚀 Upload Bottles
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
if-no-files-found: error
|
|
name: homebrew-bottles
|
|
path: |
|
|
.build/bottles/mas-*.bottle.tar.gz
|
|
|
|
- name: 🍺 Update Homebrew mas formula
|
|
run: script/brew_formula_update
|