Skip to content

using expressions to define VER #2

using expressions to define VER

using expressions to define VER #2

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Publish
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Build and test
run: dotnet fsi build.fsx -- -- build test
- name: Publish
run: dotnet fsi build.fsx -- -- pack push
env:
VER: ${{ startsWith(github.ref_name, 'v') ? github.ref_name[1:] + '.' + github.run_number : '1.0.0.' + github.run_number }}

Check failure on line 26 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}