Skip to content

Fix Linux compatibility and clean up compiler warnings #1

Fix Linux compatibility and clean up compiler warnings

Fix Linux compatibility and clean up compiler warnings #1

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: 6.2
- name: Run tests
run: swift test
- name: Extract release notes
id: release_notes
run: |
# Get tag message
echo "notes<<EOF" >> $GITHUB_OUTPUT
git tag -l "${{ github.ref_name }}" --format="%(contents:body)" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.release_notes.outputs.notes }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}