aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yaml
blob: f3e90d964fa5d5c93d7a4f536175bfb40f55bb33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Build and Release

on: workflow_dispatch

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