File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2+ # More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+ name : Continuous Deployment (Azure Cloud Migration), Build and deploy Node.js app to Azure Web App - flashcard-vpa
5+
6+ on :
7+ push :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read # This is required for actions/checkout
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Set up Node.js version
22+ uses : actions/setup-node@v3
23+ with :
24+ node-version : ' 24.x'
25+
26+ - name : npm install, build, and test
27+ run : |
28+ cd ./flashcards
29+ npm install
30+ node ace build --ignore-ts-errors
31+
32+ - name : Upload artifact for deployment job
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : node-app
36+ path : ./flashcards/build
37+ include-hidden-files : true
38+
39+ deploy :
40+ runs-on : ubuntu-latest
41+ needs : build
42+
43+ steps :
44+ - name : Download artifact from build job
45+ uses : actions/download-artifact@v4
46+ with :
47+ name : node-app
48+
49+ - name : ' Deploy to Azure Web App'
50+ id : deploy-to-webapp
51+ uses : azure/webapps-deploy@v3
52+ with :
53+ app-name : ' flashcard-vpa'
54+ slot-name : ' Production'
55+ package : .
56+ publish-profile : ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_401CB8D4E9CA4C449305922904BDF41E }}
57+
58+
59+
60+
61+
62+
63+
64+
Original file line number Diff line number Diff line change 1+
2+ Déplacement dans dossier ** /flashcards**
3+
4+ ``` code
5+ npm install
6+ ```
7+
8+ Transformer fichier .env.example en .env
9+
10+ ``` code
11+ node ace generate:key
12+ ```
13+
You can’t perform that action at this time.
0 commit comments