Add release action #6
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 | |
on: | |
push: | |
tags: | |
- "*.*.*" | |
jobs: | |
release: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf | |
with: | |
swift-version: "5.9.0" | |
- name: Build | |
run: swift build -c release --arch arm64 --arch x86_64 --product xcc | |
- name: Compress | |
run: tar -czf ${{ github.ref_name }}.tar.gz -C .build/apple/Products/Release xcc | |
- name: Release | |
run: gh release create ${{ github.ref_name }} ${{ github.ref_name }}.tar.gz |