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
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: testbeta0 | |
resource-group-name: testshpraka | |
#publish-profile: ${{ env.PUBLISH_PROFILE }} |