-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.48 KB
/
release.yml
File metadata and controls
60 lines (49 loc) · 1.48 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
52
53
54
55
56
57
58
59
60
name: Build and Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Select Xcode version
run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
- name: Show Xcode version
run: xcodebuild -version
- name: Resolve package dependencies
run: xcodebuild -resolvePackageDependencies -project OSView.xcodeproj -scheme OSView
- name: Build release
run: |
xcodebuild -project OSView.xcodeproj \
-scheme OSView \
-configuration Release \
-derivedDataPath build \
-arch arm64 \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
clean build
- name: Create ZIP archive
run: |
cd build/Build/Products/Release
zip -r OSView.zip OSView.app
mv OSView.zip ${{ github.workspace }}/
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: OSView
path: OSView.zip
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: OSView.zip
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}