-
Notifications
You must be signed in to change notification settings - Fork 1
85 lines (85 loc) · 2.67 KB
/
release-artifacts.yml
File metadata and controls
85 lines (85 loc) · 2.67 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Create Release Artifacts
on:
release:
types: [published]
permissions:
contents: write
jobs:
build-xcframework:
strategy:
matrix:
target: [JBird, JBirdCore, JBirdBuilders]
name: Build XCFramework (${{ matrix.target }})
runs-on: macos-26
outputs:
artifact-name: ${{ matrix.target }}.xcframework.zip
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Xcode Version
run: ./.scripts/xcode-select
- name: Build XCFramework
run: ./.scripts/build-xcframework ${{ matrix.target }}
- name: Upload XCFramework
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}.xcframework.zip
path: Products/${{ matrix.target }}.xcframework.zip
attach-xcframework:
name: Attach XCFramework (${{ matrix.target }})
needs: build-xcframework
strategy:
matrix:
target: [JBird, JBirdCore, JBirdBuilders]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download XCFramework
uses: actions/download-artifact@v4
with:
name: ${{ matrix.target }}.xcframework.zip
path: .
- name: Attach XCFramework to Release
uses: softprops/action-gh-release@v1
with:
files: ./${{ matrix.target }}.xcframework.zip
build-docc-archive:
name: Build DocC Archive
runs-on: macos-26
outputs:
artifact-name: archive
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Xcode Version
run: ./.scripts/xcode-select
- name: Build Documentation
run: swift package generate-documentation --enable-experimental-combined-documentation --product JBird --product JBirdCore --product JBirdBuilders --product JBirdMacros
- name: Locate DocC Archive
run: cd .build/plugins/Swift-DocC/outputs
- name: Compress DocC Archive
run: |
cd .build/plugins/Swift-DocC/outputs
zip -r JBird.doccarchive.zip JBird.doccarchive
- name: Upload Documentation
uses: actions/upload-artifact@v4
with:
name: archive
path: .build/plugins/Swift-DocC/outputs/JBird.doccarchive.zip
attach-docc-archive:
name: Attach DocC Archive to Release
needs: build-docc-archive
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download DocC Archive
uses: actions/download-artifact@v4
with:
name: archive
path: .
- name: Attach DocC Archive to Release
uses: softprops/action-gh-release@v1
with:
files: ./JBird.doccarchive.zip