From 58424c048cbcb6ef69816e646ae3fdb4aab93bf2 Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Tue, 19 Oct 2021 09:46:10 +0200 Subject: [PATCH] Add deploy preview to Netlify alias --- .github/workflows/guide.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/guide.yml b/.github/workflows/guide.yml index 01a3357b8d..bc68b2fd26 100644 --- a/.github/workflows/guide.yml +++ b/.github/workflows/guide.yml @@ -27,7 +27,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} deploy-message: "Deploy from GitHub Actions" netlify-config-path: './guide/netlify.toml' - alias: ${{ github.event.number }} + alias: deploy-preview-${{ github.event.number }} env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GUIDE_SITE_ID }} @@ -56,7 +56,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} deploy-message: "Deploy from GitHub Actions" netlify-config-path: './guide/netlify.toml' - alias: ${{ github.head_ref }} + alias: deploy-preview-${{ github.head_ref }} env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GUIDE_SITE_ID }}