Skip to content

Commit

Permalink
adding release workflow (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Guretzki <[email protected]>
  • Loading branch information
goergisn and Alex Guretzki authored Aug 16, 2024
1 parent 5dfc2cf commit cedb628
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cedb628

Please sign in to comment.