Add deploy preview to Netlify alias

This commit is contained in:
Jan Dvorak
2021-10-19 09:46:10 +02:00
parent 1d862de8e1
commit 58424c048c

View File

@@ -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 }}