-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (29 loc) · 967 Bytes
/
release.yaml
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
name: Release workflow
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Xcode select
run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
- name: Build xcframework
run: sh build.sh
- name: Zip xcframework
run: zip -r SnapshottingTests.xcframework.zip SnapshottingTests.xcframework
- name: Zip preivews support
run: (cd PreviewsSupport && zip -r PreviewsSupport.xcframework.zip PreviewsSupport.xcframework)
- name: Upload Artifact
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
SnapshottingTests.xcframework.zip
PreviewsSupport/PreviewsSupport.xcframework.zip
body:
Release ${{ github.ref }}
Automated release created by GitHub Actions.