From d537e299d841e6db0234533cb4cb33329d4bfa6e Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 26 Apr 2021 17:59:14 +0700 Subject: Dehardcode the Netlify site name and move it to an environment variable. --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1f3cb54..ef7cb7a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,6 +54,7 @@ jobs: - name: Deploy to Netlify env: NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }} + NETLIFY_SITE_NAME: ${{ secrets.NETLIFY_SITE_NAME }} run: | zip -r website.zip build/ - curl -H "Content-Type: application/zip" -H "Authorization: Bearer $NETLIFY_TOKEN" --data-binary "@website.zip" https://api.netlify.com/api/v1/sites/vyos-community.netlify.app/deploys + curl -H "Content-Type: application/zip" -H "Authorization: Bearer $NETLIFY_TOKEN" --data-binary "@website.zip" https://api.netlify.com/api/v1/sites/$NETLIFY_SITE_NAME/deploys -- cgit v1.2.3