Skip to content

Added error handling for adding AAD users to database #17

Added error handling for adding AAD users to database

Added error handling for adding AAD users to database #17

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: bash
strategy:
matrix:
release:
- type: Release
suffix: ''
name: Build (${{ matrix.release.type }})
steps:
- uses: actions/checkout@v3
- name: Setup .NET 7
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: Restore Dependencies
run: dotnet restore $PWD/TeamFiltration/
- name: Build for Windows
continue-on-error: true
run: |
VERSION=${{ github.ref_name }}
dotnet publish $PWD/TeamFiltration/ -c ${{ matrix.release.type }} -r win-x64 -p:PublishSingleFile=true --self-contained true --output $PWD/TeamFiltrationRelease/Windows/ -p:Version=${VERSION:1}
- name: Build for Linux
continue-on-error: true
run: |
VERSION=${{ github.ref_name }}
dotnet publish $PWD/TeamFiltration/ -c ${{ matrix.release.type }} -r linux-x64 -p:PublishSingleFile=true --self-contained true --output $PWD/TeamFiltrationRelease/Linux/ -p:Version=${VERSION:1}
- name: Build for Mac Intel
continue-on-error: true
run: |
VERSION=${{ github.ref_name }}
dotnet publish $PWD/TeamFiltration/ -c ${{ matrix.release.type }} -r osx-x64 -p:PublishSingleFile=true --self-contained true --output $PWD/TeamFiltrationRelease/Mac/ -p:Version=${VERSION:1}
- name: Build for Mac ARM
continue-on-error: true
run: |
VERSION=${{ github.ref_name }}
dotnet publish $PWD/TeamFiltration/ -c ${{ matrix.release.type }} -r osx-arm64 -p:PublishSingleFile=true --self-contained true --output $PWD/TeamFiltrationRelease/MacArm/ -p:Version=${VERSION:1}
- name: Zip Windows
continue-on-error: true
if: "! startsWith(github.event_name, 'pull_request')"
run: 7z a -tzip -mx9 TeamFiltration-${{ github.ref_name }}-win-x86_64.zip $PWD/TeamFiltrationRelease/Windows/TeamFiltration.exe $PWD/*.json
- name: Zip Linux
continue-on-error: true
if: "! startsWith(github.event_name, 'pull_request')"
run: 7z a -tzip -mx9 TeamFiltration-${{ github.ref_name }}-linux-x86_64$.zip $PWD/TeamFiltrationRelease/Linux/TeamFiltration $PWD/*.json
- name: Zip Mac
continue-on-error: true
if: "! startsWith(github.event_name, 'pull_request')"
run: 7z a -tzip -mx9 TeamFiltration-${{ github.ref_name }}-macOS-x86_64.zip $PWD/TeamFiltrationRelease/Mac/TeamFiltration $PWD/*.json
- name: Zip Mac ARM
continue-on-error: true
if: "! startsWith(github.event_name, 'pull_request')"
run: 7z a -tzip -mx9 TeamFiltration-${{ github.ref_name }}-macOS-arm64.zip $PWD/TeamFiltrationRelease/MacArm/TeamFiltration $PWD/*.json
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
TeamFiltration-${{ github.ref_name }}-win-x86_64.zip
TeamFiltration-${{ github.ref_name }}-linux-x86_64$.zip
TeamFiltration-${{ github.ref_name }}-macOS-x86_64.zip
TeamFiltration-${{ github.ref_name }}-macOS-arm64.zip