Bump version to 1.4.0 #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Build | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
BUILD_VERSION: 1.4.0 | |
PACKAGE_RELEASE_NOTES: | | |
Add customizable syntax highlighting for AvaloniaEdit | |
# NOTE: Instead of , use %2c | |
on: | |
push: | |
pull_request: | |
branches: | |
- '**:**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: 'recursive' | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Append ci info to version | |
if: ${{ github.ref != 'refs/heads/master' && !contains(github.ref, 'rc/') }} | |
run: | | |
echo "BUILD_VERSION=$BUILD_VERSION-ci$GITHUB_RUN_NUMBER" >> $GITHUB_ENV | |
echo "PACKAGE_RELEASE_NOTES=This is the package for CI build $GITHUB_RUN_ID" >> $GITHUB_ENV | |
- name: Build with dotnet | |
run: dotnet build --no-restore --configuration Release /property:Version=$BUILD_VERSION /property:PackageReleaseNotes="$PACKAGE_RELEASE_NOTES" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nupkg | |
path: '**/*.nupkg' |