Skip to content

Kurssin luonnissa ei oleteta enää tietokannassa olevan valmiita oletu… #52

Kurssin luonnissa ei oleteta enää tietokannassa olevan valmiita oletu…

Kurssin luonnissa ei oleteta enää tietokannassa olevan valmiita oletu… #52

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy Node.js app to Azure Web App - dvv-tiketit-pr
on:
push:
branches:
- prerelease
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: node-app
- name: Unzip artifact for deployment
run: unzip release.zip
- name: Delete release.zip
run: rm release.zip
- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'dvv-tiketit-pr'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_67AD87E075744D18AC03DF67147457D1 }}
package: .