Skip to content

Update repo file layout and remove contracts project as I do not need it #4

Update repo file layout and remove contracts project as I do not need it

Update repo file layout and remove contracts project as I do not need it #4

name: Build Artifacts
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Environment
uses: ./.github/actions/setup-env
- name: Build Artifacts
run: dotnet pack ./src/NG.Mediator/NG.Mediator.csproj -c Release -o "./artifacts"
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: 'artifacts.zip'
path: ./artifacts/*
#on:
# push:
# tags:
# - '*.*.*'
#jobs:
# build:
# strategy:
# matrix:
# os: [ubuntu-latest]
# fail-fast: false
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Setup dotnet 6.0
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: '6.0.x'
# - name: Setup dotnet 8.0
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: '8.0.100'
# - name: Build and Test
# run: ./Build.ps1
# shell: pwsh
# - name: Push to MyGet
# env:
# NUGET_URL: https://www.myget.org/F/NG.Mediator-ci/api/v3/index.json
# NUGET_API_KEY: ${{ secrets.MYGET_NG.Mediator_CI_API_KEY }}
# run: ./Push.ps1
# shell: pwsh
# - name: Push to NuGet
# env:
# NUGET_URL: https://api.nuget.org/v3/index.json
# NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
# run: ./Push.ps1
# shell: pwsh
# - name: Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: artifacts
# path: artifacts/**/*