Skip to content

UPDATED.cs

UPDATED.cs #9

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: CI Build (Constants)
concurrency:
group: CI-build (Constants)
cancel-in-progress: true
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
packages: write
actions: read
repository-projects: read
jobs:
build-constants:
runs-on: ubuntu-latest
steps:
- name: Build using DgmjrSdk
uses: dgmjr-actions/build-using-dgmjrsdk@main
with:
git-token: ${{ secrets.GITHUB_TOKEN }}
environment: Release
git-nuget-endpoint: ${{ vars.GIT_NUGET_ENDPOINT }}
private-nuget-endpoint: ${{ vars.PROGET_ENDPOINT_URL }}
private-nuget-api-key: ${{ secrets.PROGET_API_KEY }}
repo: dgmjr-io/Dgmjr.EntityFrameworkCore
project-file-path: src/Constants/Constants/Dgmjr.EntityFrameworkCore.Constants.csproj
build-DbTypesNamesAndSchemas:
runs-on: ubuntu-latest
steps:
- name: Build using DgmjrSdk
uses: dgmjr-actions/build-using-dgmjrsdk@main
with:
git-token: ${{ secrets.GITHUB_TOKEN }}
environment: Release
git-nuget-endpoint: ${{ vars.GIT_NUGET_ENDPOINT }}
private-nuget-endpoint: ${{ vars.PROGET_ENDPOINT_URL }}
private-nuget-api-key: ${{ secrets.PROGET_API_KEY }}
repo: dgmjr-io/Dgmjr.EntityFrameworkCore
project-file-path: src/Constants/DbTypesNamesAndSchemas/Dgmjr.EntityFrameworkCore.Constants.DbTypesNamesAndSchemas.csproj
nuget-push:
needs: [build-constants, build-DbTypesNamesAndSchemas]
runs-on: ubuntu-latest
steps:
- name: Run nuget-push
uses: dgmjr-actions/nuget-push@main
with:
git-token: ${{ secrets.GITHUB_TOKEN }}
environment: Release
git-nuget-endpoint: ${{ vars.GIT_NUGET_ENDPOINT }}
private-nuget-endpoint: ${{ vars.PROGET_ENDPOINT_URL }}
private-nuget-api-key: ${{ secrets.PROGET_API_KEY }}
repo: dgmjr-io/Dgmjr.EntityFrameworkCore
push-nuget: false
push-dgmjr-io: true
push-github: false