-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run deploy only after successull check #89
Conversation
Will this work? isnt cloudflare deploy relying on some push event details like ref? |
@mpetrunic Ideally it would be nice to disable CloudFlare autodeploy on the ClpudFlare side completly (you can check how Gaming Docs are working). Bc right now we are sorta have two deploys. One initiated by watchers of the repo on CloudFlare side and another one initiated by GitHub Actions. If we are proactively doing deploy from here you do not need git ref or anything. The buld is actually happening inside GH Action. The downside - there is no nice comment with deployerd URL inside PR itslef. The plus side - you still can see this data in the comment on GitHub workflow page like this: |
Another downside is that Cloudflare keeps the URL the same if you push from the same ref. We could figure out a way to hack but maybe it's easier to add to the ci script as the last task? |
But also cloudflare deploy didn't even run here or created a deployment here |
Yep, that is becasue There second |
The only thing that I generally wanted to achieve here is to make sure build is happening on the GH Actions side and we will not have the same problem as with Render when sometimes their watchers was broken or sometimes did not even report the problem back. But I'm totally open for any other solutions to this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let see how it goes and we can revert if it doesn't work. But I feel like we should put this in docs
Oh, yes, agree. Let me add docs also to this PR so it is more or less a single package. And if we decide to roll it back we will remove the related docs too. |
Ah, I just realised that this one is closed. Will create another one. |
I already opened one #92 But feel free to add reasoning regarding workflow trigger there! |
Description
This PR updates GH Actions workflow so it runs CfloudFlare Page deploy only after CI check compelted successfully.