Skip to content

Workflow file for this run

on: push
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: 'Checkout Github Action'
uses: actions/checkout@master
- name: 'Login via Azure CLI'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Setup Node 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: 'npm install, build, and test'
run: |
#echo 'PUBLISH_PROFILE=${{ secrets.azureWebAppPublishProfile}}' >> $GITHUB_ENV
npm prune --production
npm install
npm run build --if-present
# npm run test --if-present
- name: 'Run Azure webapp deploy action using publish profile credentials'
uses: azure/webapps-deploy@releases/v2
with:
app-name: lwasv2-byosstage1
resource-group-name: testshpraka
#publish-profile: ${{ env.PUBLISH_PROFILE }}