Skip to content

Commit

Permalink
Enable CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuniwak committed Jun 9, 2024
1 parent 886540a commit 17d0a66
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test
on:
push:
tags: '*'

jobs:
test:
runs-on: macos-latest

permissions:
contents: write
checks: write

steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
submodules: recursive

- name: Setup Swift
uses: swift-actions/setup-swift@e1dca7c4a36344146bbc2803f0d538462477bb37 # v2.0.0
with:
swift-version: '5.10'

- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: .build
key: spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
spm-
- name: Upload Artifacts
run: |
swift build
- name: Upload Artifacts
run: |
gh release create "${{ github.ref_name }}" .build/arm64-apple-macosx/debug/ble
env:
GITHUB_TOKEN: ${{ github.TOKEN }}

0 comments on commit 17d0a66

Please sign in to comment.