nwtgck / actions-netlify

🚀 Netlify deploy from GitHub Actions
MIT License
331 stars 41 forks source link

Create several aliases for a single deployment #1187

Open KnorpelSenf opened 3 months ago

KnorpelSenf commented 3 months ago

We currently use the default setting for alias which comments a new unique deployment URL on the pull request. This works great.

Now, we'd like to additionally have an alias for the branch name (or pull request ID, either way works) that is stable across pushes to the same branch. It should always point to the latest deployment performed from that branch.

We can't really change the setting for alias because when we do that, the unique deployment URLs will be gone. Ideally, we would like to keep them and still have a URL per branch.

Is that possible, either now or after contributing to your repo?

KnorpelSenf commented 3 months ago

We can of course perform two deployments of the same build artefacts, but the build output is rather large at ~200 MB and ~2800 files so a single deployment already takes a few minutes just to upload. It would not be optimal to have to do this once per alias.