You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# deploy-nodejs
2
2
3
3
This repository is for the **GitHub** Action to deploy a **NodeJS** application to **AWS** Serverless.
4
-
Developers on **GitHub** can call this Action to take their current **NodeJS** application, and pass basic variables to help deploy
4
+
Developers on **GitHub** can call this Action to take their current **NodeJS** application, and pass basic variables to help deploy thier application.
5
5
6
6
## How to use
7
7
@@ -26,7 +26,7 @@ This file should have the following code:
26
26
## Deploy GitHub Actions ##
27
27
###########################
28
28
###########################
29
-
name: Deploy Action
29
+
name: NodeJS AWS SAM Deploy
30
30
31
31
#
32
32
# Documentation:
@@ -44,9 +44,10 @@ on: ['push']
44
44
jobs:
45
45
build:
46
46
# Name the Job
47
-
name: Deploy NodeJS
47
+
name: NodeJS AWS SAM Deploy
48
48
# Set the agent to run on
49
49
runs-on: ubuntu-latest
50
+
50
51
##################
51
52
# Load all steps #
52
53
##################
@@ -57,14 +58,23 @@ jobs:
57
58
- name: Checkout Code
58
59
uses: actions/checkout@master
59
60
60
-
##################
61
-
# Run Deployment #
62
-
##################
63
-
- name: Run Deployment
64
-
uses: github/deploy-nodejs@master
61
+
#############################
62
+
# Run NodeJS AWS SAM Deploy #
63
+
#############################
64
+
- name: NodeJS AWS SAM Deploy
65
+
uses: docker://admiralawkbar/aws-nodejs:latest
66
+
env:
67
+
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
68
+
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
65
69
...
66
70
```
67
71
72
+
**NOTE:** You will need to create the GitHub `Secrets` for:
73
+
-**AWS_ACCESS_KEY**
74
+
- Valid AWS Access key to authenticate to your AWS Account
75
+
-**AWS_SECRET_KEY**
76
+
- Valid AWS Access Secret key to authenticate to your AWS Account
77
+
68
78
## How to contribute
69
79
70
80
If you would like to help contribute to this **Github** Action, please see [CONTRIBUTING](https://github.com/github/deploy-nodejs/blob/master/.github/CONTRIBUTING.md)
0 commit comments