diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
new file mode 100644
index 00000000..8d0c9619
--- /dev/null
+++ b/.github/workflows/deploy.yaml
@@ -0,0 +1,84 @@
+# Run locally with act:
+#
+# act pull_request [--input command=[command]] \
+# --platform fusionauth-builder=[ecr-repo-name]/fusionauth-builder:latest] \
+# --workflows ./.github/workflows/release.yaml \
+# --env-file <(aws configure export-credentials --profile [aws-profile] --format env)
+
+name: Deploy
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+ workflow_dispatch:
+ inputs:
+ command:
+ type: choice
+ options:
+ - build # build only
+ - publish # build & publish to nuget
+ - release # build & release to svn
+ default: build
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+ if: |
+ github.event_name == 'pull_request' ||
+ github.event_name == 'push' ||
+ github.event_name == 'workflow_dispatch' && inputs.command == 'build'
+ runs-on: fusionauth-builder
+ steps:
+ - name: checkout
+ uses: actions/checkout@v4
+
+ - name: compile
+ shell: bash -l {0}
+ run: sb compile
+
+ deploy:
+ if: |
+ github.event_name == 'workflow_dispatch' &&
+ (inputs.command == 'release' || inputs.command == 'publish')
+ runs-on: fusionauth-builder
+ steps:
+ - name: checkout
+ uses: actions/checkout@v4
+
+ - name: set aws credentials
+ uses: aws-actions/configure-aws-credentials@v4
+ with:
+ role-to-assume: arn:aws:iam::752443094709:role/github-actions
+ role-session-name: aws-auth-action
+ aws-region: us-west-2
+
+ - name: get secret
+ run: |
+ while IFS=$'\t' read -r key value; do
+ echo "::add-mask::${value}"
+ echo "${key}=${value}" >> $GITHUB_ENV
+ done < <(aws secretsmanager get-secret-value \
+ --region us-west-2 \
+ --secret-id platform/nuget \
+ --query SecretString \
+ --output text | \
+ jq -r 'to_entries[] | [.key, .value] | @tsv')
+
+ - name: update savant properties file
+ run: echo "nugetAPIKey=${{ env.API_KEY }}" >> ~/.savant/config.properties
+
+ - name: release to svn
+ if: inputs.command == 'release'
+ shell: bash -l {0}
+ run: sb release
+
+ - name: publish to nuget
+ if: inputs.command == 'publish'
+ shell: bash -l {0}
+ run: sb publish
diff --git a/fusionauth-netcore-client/fusionauth-netcore-client.csproj b/fusionauth-netcore-client/fusionauth-netcore-client.csproj
index c7917d31..3e6b1e77 100644
--- a/fusionauth-netcore-client/fusionauth-netcore-client.csproj
+++ b/fusionauth-netcore-client/fusionauth-netcore-client.csproj
@@ -12,12 +12,12 @@
FusionAuth
FusionAuth client for .NET Core
7.3
- netstandard2.0;netstandard2.1;netcoreapp2.1;netcoreapp3.1
+ netstandard2.0;netstandard2.1;netcoreapp2.1;netcoreapp3.1;net6.0;net8.0
FusionAuth
-
+