From 2fa384aa9610017d6f8a34e04908743d2a371481 Mon Sep 17 00:00:00 2001 From: Finn Voorhees Date: Mon, 11 Dec 2023 20:03:15 +0000 Subject: [PATCH] Add release action --- .github/workflows/Release.yml | 20 ++++++++++++++++++++ Package.swift | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/Release.yml diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 0000000..a7bf031 --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,20 @@ +name: Release + +on: + push: + tags: + - "*.*.*" + +jobs: + release: + runs-on: macos-13 + + steps: + - uses: actions/checkout@v3 + - run: sudo xcode-select -s /Applications/Xcode_15.0.app + - 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 diff --git a/Package.swift b/Package.swift index 2ba091d..5a719f9 100644 --- a/Package.swift +++ b/Package.swift @@ -7,7 +7,7 @@ let package = Package( platforms: [.macOS(.v11)], dependencies: [ .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"), - .package(url: "git@github.com:AvdLee/appstoreconnect-swift-sdk.git", from: "3.0.1"), + .package(url: "https://github.com:AvdLee/appstoreconnect-swift-sdk.git", from: "3.0.1"), .package(url: "https://github.com/Finnvoor/SwiftTUI.git", from: "1.0.0") ], targets: [