From cedb6285c619c731715f3fdcf88212796ab5a330 Mon Sep 17 00:00:00 2001 From: Alex Guretzki Date: Fri, 16 Aug 2024 18:01:28 +0200 Subject: [PATCH] adding release workflow (#8) Co-authored-by: Alex Guretzki --- .github/workflows/build-release.yml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-release.yml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..a9e4e6a --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,35 @@ +name: 🚀 Build release + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + + build: + runs-on: macos-14 # Apple Silicon Runner + + steps: + - uses: actions/checkout@v4 + - uses: n1hility/cancel-previous-runs@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Select latest Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '15.1' + + - name: 🛠️ Build with release configuration + run: | + swift build --configuration release | xcpretty --utf --color && exit ${PIPESTATUS[0]} + + - uses: actions/upload-artifact@v4 + with: + name: 'public-api-diff' + path: '.build/release/public-api-diff' + if-no-files-found: 'error' + retention-days: 0 +