Skip to content

Commit

Permalink
Add dotnet pack step to RC workflow with custom output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
btungut committed Jan 22, 2025
1 parent b1e1832 commit 22df13e
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
build_and_test:
name: build_and_test
runs-on: ${{ vars.DEFAULT_RUNS_ON }}
env:
DOTNET_NUGET_DIR: ${{ github.env.RUNNER_TEMP }}/.nuget


steps:
Expand Down Expand Up @@ -48,4 +50,27 @@ jobs:
dir-src-project: app/src
dir-unit-tests: app/tests
dir-integration-tests: app/tests_integration


- name: dotnet_pack
id: dotnet_pack
shell: bash
run: |
set -euo pipefail
echo "PWD = $(pwd)"
rm -rf ${{ env.DOTNET_NUGET_DIR }}
mkdir -p ${{ env.DOTNET_NUGET_DIR }}
PACKAGE_VERSION="${{ steps.common.outputs.branch-version }}-rc${{ steps.common.outputs.rev-unique }}"
dotnet pack \
-c Release \
--verbosity detailed \
--no-build \
--no-restore \
-p:PackageVersion="$PACKAGE_VERSION" \
--output ${{ env.DOTNET_NUGET_DIR }}
echo -e "\n\nls for ${{ env.DOTNET_NUGET_DIR }}\n"
ls -al ${{ env.DOTNET_NUGET_DIR }}
working-directory: app/src

0 comments on commit 22df13e

Please sign in to comment.