Added error handling for adding AAD users to database #17
Workflow file for this run
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: 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 |