Skip to content

Prepare CLI release

Prepare CLI release #1

Workflow file for this run

name: Prepare CLI release
# Only do the release on x.y.z tags.
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- original_name: ksplang-cli.exe
fixed_name: ksplang.exe
os: windows-latest
- original_name: ksplang-cli
fixed_name: ksplang
os: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build -p ksplang-cli --verbose --release
- name: Run library tests
run: cargo test --verbose
- name: Run CLI tests
run: cargo test -p ksplang-cli --verbose
- name: Rename executable
run: |
mv target/release/${{ matrix.original_name }} target/release/${{ matrix.fixed_name }}
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: target/release/${{ matrix.fixed_name

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

View workflow run for this annotation

GitHub Actions / Prepare CLI release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 40, Col: 16): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}