Skip to content

Add reference handler #26

Add reference handler

Add reference handler #26

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
paths-ignore:
- '*.md'
- 'docs/**'
branches:
- 'master'
tags-ignore:
- '**'
pull_request:
paths-ignore:
- '*.md'
- 'docs/**'
release:
types: [created]
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
defaults:
run:
shell: pwsh
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore
run: .\build.ps1 restore
- name: Build
run: .\build.ps1 build --skip restore
- name: Package
if: runner.os == 'Windows'
run: .\build.ps1 package --skip build
- name: Upload artifacts
if: runner.os == 'Windows' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir release
Compress-Archive -Path ./src/Facility.LanguageServer/bin/Release/net6.0/publish/* -DestinationPath release/Facility.LanguageServer.zip
Compress-Archive -Path ./src/Facility.LanguageServer/bin/Release/net6.0/win-x64/publish/* -DestinationPath release/Facility.LanguageServer-win-x64.zip
gh release upload ${{ github.event.release.tag_name }} .\release\Facility.LanguageServer.zip .\release\Facility.LanguageServer-win-x64.zip