summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2021-04-26 17:59:14 +0700
committerDaniil Baturin <daniil@baturin.org>2021-04-26 17:59:14 +0700
commitd537e299d841e6db0234533cb4cb33329d4bfa6e (patch)
tree72ebff0f36bb72479f83d7e6f779c28a309aa5c6 /.github
parent432bf4bc5f8be20ad355fc334d60083fa84db2f2 (diff)
downloadcommunity.vyos.net-d537e299d841e6db0234533cb4cb33329d4bfa6e.tar.gz
community.vyos.net-d537e299d841e6db0234533cb4cb33329d4bfa6e.zip
Dehardcode the Netlify site name and move it to an environment variable.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml3
1 files changed, 2 insertions, 1 deletions
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