Skip to content

Commit da1b7bc

Browse files
committed
Use environment for deployment secrets
1 parent 4541f54 commit da1b7bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
deploy:
3131
needs:
3232
- "check"
33+
environment:
34+
name: netlify
3335
if: "github.ref == 'refs/heads/main'"
3436
runs-on: "ubuntu-22.04"
3537
steps:
@@ -48,4 +50,4 @@ jobs:
4850
- run: "netlify deploy --dir . --no-build --prod true"
4951
env:
5052
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
51-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
53+
NETLIFY_SITE_ID: ${{ env.NETLIFY_SITE_ID }}

0 commit comments

Comments
 (0)