Skip to content

Add release action

Add release action #4

Workflow file for this run

name: Release
on:
push:
tags:
- "*.*.*"
jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf
with:

Check failure on line 15 in .github/workflows/Release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/Release.yml (Line: 15, Col: 14): Unexpected value '' .github/workflows/Release.yml (Line: 16, Col: 9): Unexpected value 'swift-version'
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