Skip to content

Commit 81193c7

Browse files
authored
Heroku/deploy (#13)
* deploy test 1 * Add or update the App Service deployment workflow configuration from Azure Portal. * deploy test 2 ✅ * heroku test 1 * heroku test 2 * heroku test 3 * heroku test 4 * heroku test 5 * heroku test 6 * heroku test 7 * Home screen text change ✅
1 parent ad604bb commit 81193c7

9 files changed

+21821
-17
lines changed
+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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: Build and deploy Node.js app to Azure Web App - hackclubnuv
5+
6+
on:
7+
push:
8+
branches:
9+
- deploy
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Set up Node.js version
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: '14.x'
23+
24+
- name: npm install, build, and test
25+
run: |
26+
npm install --prefix server --only=prod
27+
npm install --prefix client --only=prod
28+
npm run build --prefix client
29+
npm run build --if-present
30+
npm run test --if-present
31+
32+
- name: Upload artifact for deployment job
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: node-app
36+
path: .
37+
38+
deploy:
39+
runs-on: windows-latest
40+
needs: build
41+
environment:
42+
name: 'production'
43+
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
44+
45+
steps:
46+
- name: Download artifact from build job
47+
uses: actions/download-artifact@v2
48+
with:
49+
name: node-app
50+
51+
- name: 'Deploy to Azure Web App'
52+
id: deploy-to-webapp
53+
uses: azure/webapps-deploy@v2
54+
with:
55+
app-name: 'hackclubnuv'
56+
slot-name: 'production'
57+
publish-profile: ${{ secrets.AzureAppService_PublishProfile_ceba37809fdc4aa98f13ae7ad226886f }}
58+
package: .

0 commit comments

Comments
 (0)