-
Notifications
You must be signed in to change notification settings - Fork 146
52 lines (47 loc) · 1.36 KB
/
deploy.yml
File metadata and controls
52 lines (47 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: MAN release/deploy
on:
release:
types:
- published
workflow_dispatch:
jobs:
deploy-mac:
runs-on: macos-14
timeout-minutes: 120
env:
RELEASE_ASSETS: true
strategy:
matrix:
arch: [intel, arm]
steps:
- name: Get repository name.
run: echo "FASTSURFER_DIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up python environment
id: setup-uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.10'
- name: install dependencies
run: |
uv venv .venv
uv pip install py2app tomli
# update system to the newest version, not pin pointing package version on purpose
brew update
brew upgrade || true
brew install aria2
- name: package app for ${{ matrix.arch }}
run: tools/macos_build/build_release_package.sh ${{ matrix.arch }}
- name: Move assets.
if: env.RELEASE_ASSETS == 'true'
run: |
mkdir assets
mv tools/macos_build/installer/* assets/
- name: Upload release assets.
uses: softprops/action-gh-release@v2
if: env.RELEASE_ASSETS == 'true'
with:
files: ${{ env.FASTSURFER_DIR }}/assets/*