Skip to content

Update main.yml

Update main.yml #4

Workflow file for this run

name: Build and Release macOS App
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and Archive
run: |
xcodebuild -project LingoSwitch.xcodeproj -scheme LingoSwitch -configuration Release archive -archivePath $PWD/build/LingoSwitch.xcarchive
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
tag_name: ${{ v0.8.0 }}

Check failure on line 27 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Build and Release macOS App

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 27, Col: 19): Unrecognized named-value: 'v0'. Located at position 1 within expression: v0.8.0 .github/workflows/main.yml (Line: 28, Col: 23): Unrecognized named-value: 'v0'. Located at position 1 within expression: v0.8.0
release_name: Pre-Release ${{ v0.8.0 }}
draft: false
prerelease: true
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/LingoSwitch.app
asset_name: LingoSwitch.app
asset_content_type: application/octet-stream