Skip to content

Add defaultExtensionTarget command parameter #27

Add defaultExtensionTarget command parameter

Add defaultExtensionTarget command parameter #27

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
tag:
description: 'The new version to tag, ex: x.x.x'
required: true
type: string
jobs:
create-release:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create Release
uses: swift-actions/setup-swift@v1.25.0
with:

Check failure on line 19 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
swift-version: "5.9"
run: |
set -euo pipefail
git config user.name "Release Workflow"
git config user.email "noreply@github.com"
# Build the binary
swift build -c release --arch x86_64 --arch arm64 --product knit-cli
mv .build/apple/Products/Release/knit-cli knit
# Archive the repository
# Considerations:
# - Package the source code
# - Package the pre-built binary
zip -r knit-$TAG.zip knit Sources
# Create the release
gh release create "$TAG" \
--title "$TAG" \
--target "$GITHUB_REF_NAME" \
--generate-notes \
"knit-$TAG.zip"
env:
TAG: ${{ inputs.tag }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}