Add option to use the app without email configured #9
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: Build | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Install dotnet-ef | |
run: dotnet tool install --global dotnet-ef | |
- name: Build | |
run: dotnet build --no-restore --configuration Release | |
- name: Create migration bundle | |
run: | | |
export PATH="$PATH:/root/.dotnet/tools" && \ | |
dotnet ef migrations bundle --startup-project ToDoAppTemplate.Api/ToDoAppTemplate.Api.csproj \ | |
--project ToDoAppTemplate.Data/ToDoAppTemplate.Data.csproj --self-contained -r linux-x64 \ | |
--output publish/efbundle | |
- name: Publish | |
run: dotnet publish --no-restore --configuration Release --output publish/app | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ToDoAppTemplate | |
path: publish |