Updating GitHub CI steps for dotnet deployments #1752 (#1874)

* updating deploy.py for dotnet packages

* dotnet deployment needs to be along side python if flagged

* indivdual deployment state for dotnet api since this will deploy alongside python api

* correcting state order for dotnet-api deployment step to follow python api deployment

* cleanup deploy.py formatting

* Adding dotnet's zip package arguments to deploy and fixing func command flags

* Updating ci.yml for dotnet artifacts and adding az-local.settings.json for functionapp deployment

* fixing directory path on ci.yml

* changed single quote to double to pass black check

* keeping changes to deploy.py staged in separate branch

* missing newline at EOF

Co-authored-by: AdamLeclerc-Microsoft <103067949+AdamLeclerc-Microsoft@users.noreply.github.com>
This commit is contained in:
Adam
2022-05-02 13:47:18 -07:00
committed by GitHub
parent fe0ae30823
commit a0443fb7b8
2 changed files with 21 additions and 0 deletions

View File

@ -277,6 +277,21 @@ jobs:
run: | run: |
cd src/ApiService/ cd src/ApiService/
dotnet test --no-restore dotnet test --no-restore
- name: copy artifacts
run: |
./src/ci/get-version.sh > src/deployment/VERSION
cd src/ApiService/ApiService/
echo ${GITHUB_RUN_ID} | tee onefuzzlib/build.id
echo ${GITHUB_SHA} | tee onefuzzlib/git.version
mv az-local.settings.json bin/Release/net6.0/local.settings.json
cd bin/Release/net6.0/
zip -r api-service-net.zip .
mkdir -p ${GITHUB_WORKSPACE}/artifacts/service-net
cp api-service-net.zip ${GITHUB_WORKSPACE}/artifacts/service-net
- uses: actions/upload-artifact@v2.2.2
with:
name: build-artifacts
path: artifacts
afl: afl:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:

View File

@ -0,0 +1,6 @@
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated"
}
}