Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixing releases to go from Windows pipeline
  • Loading branch information
jbogard committed Nov 3, 2025
commit dd1c63a9f00023ef8bd594108aa99d45875e43a5
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,7 @@ indent_size = 2
indent_size = 2

[*.csproj]
indent_size = 2

[*.yml]
indent_size = 2
112 changes: 55 additions & 57 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,68 @@
---
name: Release

on:
push:
tags:
- '*.*.*'
- "*.*.*"
permissions:
contents: read

jobs:
build-windows:
build:
strategy:
fail-fast: false
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Build and Test
run: |
dotnet build --configuration Release

dotnet test --configuration Release --no-build --results-directory ".\artifacts" -l trx .\src\UnitTests

dotnet test --configuration Release --no-build --results-directory ".\artifacts" -l trx .\src\AutoMapper.DI.Tests

shell: pwsh
build:
needs: build-windows
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Build and Test
run: ./Build.ps1
shell: pwsh
build-windows:
needs: build
strategy:
fail-fast: false
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Build and Test
run: ./Build.ps1
shell: pwsh
- name: Push to MyGet
env:
NUGET_URL: https://f.feedz.io/lucky-penny-software/automapper/nuget/index.json
NUGET_API_KEY: ${{ secrets.FEEDZIO_ACCESS_TOKEN }}
run: ./Push.ps1
shell: pwsh
- name: Push to NuGet
env:
NUGET_URL: https://api.nuget.org/v3/index.json
NUGET_API_KEY: ${{ secrets.AUTOMAPPER_NUGET_API_KEY }}
run: ./Push.ps1
shell: pwsh
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts/**/*
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Build and Test
run: >
dotnet build --configuration Release

dotnet test --configuration Release --no-build --results-directory ".\artifacts" -l trx .\src\UnitTests

dotnet test --configuration Release --no-build --results-directory ".\artifacts" -l trx .\src\AutoMapper.DI.Tests
shell: pwsh
- name: Push to MyGet
env:
NUGET_URL: https://f.feedz.io/lucky-penny-software/automapper/nuget/index.json
NUGET_API_KEY: ${{ secrets.FEEDZIO_ACCESS_TOKEN }}
run: ./Push.ps1
shell: pwsh
- name: Push to NuGet
env:
NUGET_URL: https://api.nuget.org/v3/index.json
NUGET_API_KEY: ${{ secrets.AUTOMAPPER_NUGET_API_KEY }}
run: ./Push.ps1
shell: pwsh
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts/**/*