Skip to content

Update build-and-release.yaml #12

Update build-and-release.yaml

Update build-and-release.yaml #12

name: Build and Release
on:
push:
branches:
- main # Adjust this to your main branch name
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
g++ -o YT-Compression.exe src/YTCompression.cpp
- name: Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ var.MY_APP_VERSION }}

Check failure on line 26 in .github/workflows/build-and-release.yaml

View workflow run for this annotation

GitHub Actions / Build and Release

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-release.yaml (Line: 26, Col: 21): Unrecognized named-value: 'var'. Located at position 1 within expression: var.MY_APP_VERSION .github/workflows/build-and-release.yaml (Line: 27, Col: 25): Unrecognized named-value: 'var'. Located at position 1 within expression: var.MY_APP_VERSION
release_name: Release ${{ var.MY_APP_VERSION }}
body: Automated Release
draft: false
prerelease: false