From 6e7efbe9092b9d5b6618a5174166ea96f9989d78 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 9 Dec 2023 18:32:25 -0700 Subject: test swift ci --- .github/workflows/release.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..fd0547f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,31 @@ +name: Build and Release + +on: + push: + branches: + - master + release: + types: [created] + +jobs: + build-and-release: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + steps: + - uses: actions/checkout@v2 + + - name: Setup Swift + uses: swift-actions/setup-swift@v1.25.0 + + - name: Build for Release + run: swift build -c release + + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: build-artifacts-${{ matrix.os }} + path: .build/release/swift-gopher + + -- cgit v1.2.3