Fix faceMask size #16
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: Main Build/Pack .NET | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Git Version | |
id: version | |
uses: codacy/[email protected] | |
with: | |
release-branch: main | |
- name: Restore dependencies | |
run: dotnet restore -p:IsLocal=false | |
- name: Build | |
run: dotnet build --no-restore --configuration Release -p:IsLocal=false -p:Version=${{ steps.version.outputs.version }} -p:PackageVersion=${{ steps.version.outputs.version }} | |
- name: Test | |
run: dotnet test --no-build --verbosity normal --configuration Release -p:IsLocal=false | |
- name: Tag the commit | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Tagger" | |
git tag -a ${{ steps.version.outputs.version }} -m "Version ${{ steps.version.outputs.version }}" | |
git push --follow-tags | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: packages | |
path: | | |
.out/packages |