Skip to content

Update main.yml

Update main.yml #3

Workflow file for this run

# 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
concurrency:
group: CI-build
cancel-in-progress: true
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
packages: write
actions: read
repository-projects: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Dgmjr.ComponentModel alongside the repo being compiled
uses: actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: dgmjr-io/Dgmjr.ComponentModel
path: ComponentModel
- 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/Abstractions
project-file-path: Dgmjr.Abstractions.csproj
nuget-push:
needs: build
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/Abstractions
project-file-path: Dgmjr.Abstractions.csproj
push-nuget: false
push-dgmjr-io: true
push-github: true