Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dgmjr authored Oct 18, 2023
1 parent d2550c8 commit ef1d000
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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: 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/EnumCodeGenerator
project-file-path: src/Dgmjr.Enumerations.CodeGenerator.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/EnumCodeGenerator
project-file-path: Dgmjr.Enumerations.CodeGenerator.csproj
push-nuget: false
push-dgmjr-io: true
push-github: true

0 comments on commit ef1d000

Please sign in to comment.