From 48a79242e8f1bcc464644ebffa244ac97ac589c0 Mon Sep 17 00:00:00 2001 From: admclamb Date: Wed, 29 Apr 2026 23:00:16 -0400 Subject: [PATCH 1/2] update --- .github/workflows/deploy-scrum.yml | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/deploy-scrum.yml diff --git a/.github/workflows/deploy-scrum.yml b/.github/workflows/deploy-scrum.yml new file mode 100644 index 0000000..a92fec4 --- /dev/null +++ b/.github/workflows/deploy-scrum.yml @@ -0,0 +1,44 @@ +name: Deploy Scrum + +on: + workflow_dispatch: + inputs: + run_bootstrap: + description: "Run bootstrap seeds (--init)" + type: boolean + default: false + +concurrency: + group: deploy-scrum + cancel-in-progress: false + +permissions: + contents: read + +jobs: + deploy: + runs-on: ubuntu-latest + environment: scrum + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET 10 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "10.0.x" + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Run migrations and seeds + run: | + ARGS="--connectionString \"${{ secrets.DATABASE_CONNECTION_STRING }}\"" + if [ "${{ inputs.run_bootstrap }}" = "true" ]; then + ARGS="$ARGS --init" + fi + eval dotnet run --project ./Database/Database.csproj --configuration Release --no-build -- $ARGS From e0916f11187c5b7e3b1c08eb25716d9f6ccb3f6d Mon Sep 17 00:00:00 2001 From: admclamb Date: Wed, 29 Apr 2026 23:01:02 -0400 Subject: [PATCH 2/2] update name --- .github/workflows/deploy-scrum.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-scrum.yml b/.github/workflows/deploy-scrum.yml index a92fec4..c3e8875 100644 --- a/.github/workflows/deploy-scrum.yml +++ b/.github/workflows/deploy-scrum.yml @@ -37,7 +37,7 @@ jobs: - name: Run migrations and seeds run: | - ARGS="--connectionString \"${{ secrets.DATABASE_CONNECTION_STRING }}\"" + ARGS="--connectionString \"${{ secrets.CONNECTION_STRING }}\"" if [ "${{ inputs.run_bootstrap }}" = "true" ]; then ARGS="$ARGS --init" fi