Skip to content

downgrade ef and add toflags extenxions #107

downgrade ef and add toflags extenxions

downgrade ef and add toflags extenxions #107

Workflow file for this run

name: .NET Publish
on:
workflow_dispatch:
push:
branches: [ "*" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ]
version: [ 6.x, 7.x, 8.x ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.version }}
- name: Login into Github Packeges
run: dotnet nuget add source --store-password-in-clear-text "https://nuget.pkg.github.com/Takasaki-Studio/index.json" --name github --username ${{ secrets.USERNAME }} --password ${{ secrets.SECRET }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore /WarnAsError
test:
strategy:
matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ]
version: [ 6.x, 7.x, 8.x ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.version }}
- name: Login into Github Packeges
run: dotnet nuget add source --store-password-in-clear-text "https://nuget.pkg.github.com/Takasaki-Studio/index.json" --name github --username ${{ secrets.USERNAME }} --password ${{ secrets.SECRET }}
- name: Restore dependencies
run: dotnet restore
- name: Test
run: dotnet test --verbosity normal
publish:
needs: [ build, test ]
environment: 'Production'
runs-on: ubuntu-latest
if: github.ref_name == 'main'
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Add Nuget Source
run: dotnet nuget add source --store-password-in-clear-text "https://nuget.pkg.github.com/Takasaki-Studio/index.json" --username "${{ secrets.USERNAME }}" --password "${{ secrets.SECRET }}" --name "github"
- name: Publish to Github Package
run: dotnet nuget push "./Lina/bin/Release/*.nupkg" --api-key ${{ secrets.SECRET }} --source "github"