Skip to content

Update version to 2.0.1 #34

Update version to 2.0.1

Update version to 2.0.1 #34

Workflow file for this run

name: Test Build
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PROJECT_NAME: UXAV.AVnet.Core
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Dotnet Setup
id: setup-dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
cache: true
cache-dependency-path: "${{ env.PROJECT_NAME }}/packages.lock.json"
- name: Check version number
id: check-version
run: |
version=$(grep -o '<Version>.*</Version>' ${{ env.PROJECT_NAME }}/Directory.Build.props | sed 's/<Version>\(.*\)<\/Version>/\1/')
echo "VERSION=$version" >> $GITHUB_ENV
- name: Restore nuget packages
id: restore
run: dotnet restore ${{ env.PROJECT_NAME }}
- name: Build
id: build
run: dotnet build ${{ env.PROJECT_NAME }} -c Release -v m --no-restore
- name: Pack
id: pack
run: dotnet pack ${{ env.PROJECT_NAME }} -c Release -v m --no-build --output nupkgs
- name: Upload package to artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}.${{ env.VERSION }}.nupkg
path: nupkgs/${{ env.PROJECT_NAME}}.${{ env.VERSION }}.nupkg