Drop swift tools version (#212) #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 SnapshottingTests xcframework | |
run: zip -r SnapshottingTests.xcframework.zip SnapshottingTests.xcframework | |
- name: Zip PreviewGallery xcframework | |
run: zip -r PreviewGallery.xcframework.zip PreviewGallery.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: | | |
PreviewGallery.xcframework.zip | |
SnapshottingTests.xcframework.zip | |
PreviewsSupport/PreviewsSupport.xcframework.zip | |
body: | |
Release ${{ github.ref }} | |
Automated release created by GitHub Actions. |