fix(ecotag): remove unexisting file #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Azure Demo | |
on: | |
push: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build-linux: | |
environment: ml-cli | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- uses: actions/setup-dotnet@v1 | |
- name: npm install and build | |
working-directory: ./src/Ecotag/ClientApp | |
run: | | |
npm ci | |
npm run build:local | |
npm run build:server | |
- run: dotnet publish ./src/Ecotag/Ecotag.csproj -c Release -r win-x64 --output ./drop/win-x64/ecotag | |
- name: Download libreOffice and Set Up Azure Configuration | |
run: | | |
git clone https://github.com/guillaume-chervet/LibreOfficePortal_7.4.2_winx64.git --depth 1 LibreOffice | |
mv LibreOffice drop/win-x64/ecotag | |
mkdir drop/win-x64/ecotag/ClientApp | |
mkdir drop/win-x64/ecotag/ClientApp/build-server | |
mv src/Ecotag/ClientApp/build-server drop/win-x64/ecotag/ClientApp | |
cd drop/win-x64/ecotag | |
rm appsettings-server.Production.json | |
cp appsettings-server.Azure.json appsettings-server.Production.json | |
cd ClientApp/build-server | |
rm environment.json | |
cp environment.azure.json environment.json | |
rm OidcTrustedDomains.js | |
cp OidcTrustedDomains.azure.js OidcTrustedDomains.js | |
- name: Zip Release | |
uses: TheDoctor0/[email protected] | |
with: | |
filename: ecotag-win-x64.zip | |
path: . | |
directory: ./drop/win-x64/ecotag | |
- name: Deploy to Azure Web App | |
id: deploy-to-webapp | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: 'axaguildev-ecotag' | |
slot-name: 'Production' | |
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | |
package: ./drop/win-x64/ecotag/ecotag-win-x64.zip |