aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yaml31
1 files changed, 31 insertions, 0 deletions
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
+
+