aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yaml
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-12-09 18:32:25 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-12-09 18:32:25 -0700
commit6e7efbe9092b9d5b6618a5174166ea96f9989d78 (patch)
tree0b688523b13aa78f87ef3354309171284b14bfbc /.github/workflows/release.yaml
parentcfae29a68f8ae5e2ba5feeea24e3943e87b04a22 (diff)
test swift ci
Diffstat (limited to '.github/workflows/release.yaml')
-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
+
+