From ef1d00008e061a8dc7b5b1f8e09d8df6ceb0a620 Mon Sep 17 00:00:00 2001 From: "David G. Moore, Jr" Date: Wed, 18 Oct 2023 05:44:31 -0400 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..30b9e13 --- /dev/null +++ b/.github/workflows/main.yml @@ -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