Skip to content

Commit

Permalink
commit message in deploy message
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-pierce committed Jun 18, 2022
1 parent 9708624 commit ad10af4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
NETLIFY_DEPLOY_TO_PROD: true
NETLIFY_DEPLOY_MESSAGE: "${{ github.event.head_commit.message }}"
build_directory: ./src
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# private-netlify
[![Netlify Status](https://api.netlify.com/api/v1/badges/11571d52-124a-43db-b743-5afa1043368e/deploy-status)](https://app.netlify.com/sites/cheery-starburst-c484cb/deploys)

Example of using StatiCrypt to password protect static sites deployed to Netlify free tier

Because we're deploying via cli, we don't need to link git repo in Netlify backend -- though doing so anyway doesn't seem to break anything (it does create weird duplicate deploys though)
Because we're deploying via cli, we don't need to link git repo in Netlify backend.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</head>
<body>
<p>
hi this is a test site and you've entered the pwd!
Hi this is a test site and you've entered the password!
</p>
<p>
<a href="second.html">Second Page</a>
Expand Down
2 changes: 1 addition & 1 deletion src/second.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</head>
<body>
<p>
this should also be protected
This should also be protected. If you check the Remember Me box, you shouldn't have to re-enter the password.
</p>
<p>
<a href="index.html">Return</a>
Expand Down

0 comments on commit ad10af4

Please sign in to comment.