diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 0000000..ca19526 --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,19 @@ +name: Release + +on: + push: + tags: + - "*.*.*" + +jobs: + release: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + - 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