-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix release pipelines #4583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix release pipelines #4583
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
dd1c63a
Fixing releases to go from Windows pipeline
jbogard 15e3361
Fixing both release pipelines
jbogard 9f749c7
Updating test container package
jbogard 14b74b2
Trying to specify image
jbogard ef911dc
Trying to set up the WSL 2 environment
jbogard 0054d0d
Trying a different version
jbogard 4972fd4
Excluding EF tests because containers don't work great on Windows
jbogard e9f5cef
Passing in solution file to test command
jbogard fae3113
Fixing slashes hopefully
jbogard a06fbb8
Adding flags for Windows builds
jbogard 005a706
Fixing some full .NET issues
jbogard 3667a2b
Fixing compile errors
jbogard 3c46449
Fixing compile errors
jbogard 3428bd6
Only packing on the correct runner
jbogard 49d6de4
Skipping artifacts for *nix run
jbogard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,4 +97,7 @@ indent_size = 2 | |
| indent_size = 2 | ||
|
|
||
| [*.csproj] | ||
| indent_size = 2 | ||
|
|
||
| [*.yml] | ||
| indent_size = 2 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,32 +15,7 @@ concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| build-windows: | ||
| strategy: | ||
| fail-fast: false | ||
| runs-on: windows-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/[email protected] | ||
| 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 | ||
| strategy: | ||
| fail-fast: false | ||
| runs-on: ubuntu-latest | ||
|
|
@@ -58,15 +33,34 @@ jobs: | |
| - name: Build and Test | ||
| run: ./Build.ps1 | ||
| shell: pwsh | ||
| - name: Push to MyGet | ||
| if: github.ref == 'refs/heads/master' | ||
| 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: Artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: artifacts | ||
| path: artifacts/**/* | ||
| build-windows: | ||
| needs: build | ||
| strategy: | ||
| fail-fast: false | ||
| runs-on: windows-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/[email protected] | ||
| 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 | ||
| if: github.ref == 'refs/heads/master' | ||
| 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: Artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: artifacts | ||
| path: artifacts/**/* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,70 +1,63 @@ | ||
| --- | ||
| 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: ./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/**/* | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.