Skip to content

Commit

Permalink
cicd build release
Browse files Browse the repository at this point in the history
  • Loading branch information
lordspinach authored and Insei committed Apr 5, 2024
1 parent 4aaf4d5 commit 38fa5fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/PRNugetPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Build
run: |
dotnet restore src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
dotnet build --version-suffix ${{ needs.pr_info.outputs.pr_prefix }} src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
dotnet build --configuration Release --version-suffix ${{ needs.pr_info.outputs.pr_prefix }} src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
dotnet pack -o ./packages --version-suffix ${{ needs.pr_info.outputs.pr_prefix }} src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
- name: Publish
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
if: github.ref != 'refs/heads/main'
run: |
dotnet restore src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
dotnet build src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
dotnet build --configuration Release src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
dotnet pack -o ./packages src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
- name: Build main
if: github.ref == 'refs/heads/main'
run: |
dotnet restore src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
dotnet build --version-suffix "-main-${{github.run_number}}-$(echo ${GITHUB_SHA} | cut -c1-8)" src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
dotnet build --configuration Release --version-suffix "-main-${{github.run_number}}-$(echo ${GITHUB_SHA} | cut -c1-8)" src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
dotnet pack --version-suffix "-main-${{github.run_number}}-$(echo ${GITHUB_SHA} | cut -c1-8)" -o ./packages src/Kirel.Repositories.${{ matrix.package }}/Kirel.Repositories.${{ matrix.package }}.csproj
- name: Push
env:
Expand Down

0 comments on commit 38fa5fd

Please sign in to comment.