Skip to content

added release action #111

added release action

added release action #111

Workflow file for this run

name: build dotnet
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [ '10.0.x' ]
node-version: [latest]
steps:
- uses: actions/checkout@v6
- name: Install dependencies
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Build
run: dotnet build UAParser.Core.slnx
- run: npm ci
- run: npm run update
- name: Verify regex definitions are up to date
shell: bash
run: |
if ! git diff --exit-code -- UAParser.Core/regexes.yaml UAParser.Core/regexes.json; then
echo "::error::UAParser.Core/regexes.yaml or regexes.json is out of date with upstream uap-core. Run 'npm run update' locally and commit the result."
exit 1
fi
- name: Test
run: dotnet test UAParser.Core.slnx