Commit graph

13 commits

Author SHA1 Message Date
Manav Rathi
811e56fe99
Move to different file 2024-05-10 21:17:18 +05:30
Manav Rathi
3341be45f8
[web] Migrate off deprecated Cloudflare action
Refs:
- https://developers.cloudflare.com/pages/get-started/direct-upload/
- https://developers.cloudflare.com/workers/wrangler/commands/#deploy-1
- https://github.com/cloudflare/pages-action/issues/117
- https://github.com/cloudflare/wrangler-action
2024-05-10 21:16:08 +05:30
Manav Rathi
7238a34e4c
[meta] Attempt to silence Cloudflare warning 2024-05-10 20:57:03 +05:30
Manav Rathi
938cecf2d3
Move from deprecated action
Test with first one, will move the rest subsequently

Ref:
- https://github.com/cloudflare/pages-action/issues/117#issuecomment-2053610761
- https://github.com/cloudflare/wrangler-action
2024-05-10 20:11:12 +05:30
Manav Rathi
19c2f07a19
[meta] Fix the docs deployment workflow
Fix what I accidentally broke in https://github.com/ente-io/ente/pull/1149
2024-03-20 16:46:18 +05:30
Manav Rathi
fa3f249a7a
[meta] Omit unnecessary reruns of workflows when deploying
When we merge main into a deploy/* branch
(e.g. https://github.com/ente-io/ente/pull/1147), all changes get pulled in not
just the one related to that deployment, and this causes almost all of the path
based workflows to run again unnecessarily. Exclude the various "deploy/**"
branches to stop these unnecessary workflows from being triggered.
2024-03-19 12:59:04 +05:30
Manav Rathi
5d4486fce3 Add web-nightly and update existing 2024-03-08 14:09:41 +05:30
Manav Rathi
37913ffbc7 Fix the branch name 2024-03-08 13:38:34 +05:30
Manav Rathi
2eb95ab215 Move the docs deployment to the new project, its final resting place 2024-03-08 13:26:41 +05:30
Manav Rathi
236d7e2f49 Fix the deploy workflow path 2024-03-08 13:03:50 +05:30
Manav Rathi
05d13979db Remove GitHub deployments
Not integrating GitHub deployments for now since creating a deployment
(anywhere) causes "This branch has not been deployed" message to appear on
unrelated branches.

Also, the Discord /github webhook doesn't support deployment status events
anyway - Discord accepts and responds to the webhook with a 204 but it doesn't
appear in the channel. This is not a big issue, we can easily massage the
payload ourselves, but just mentioning this for posterity. Refs:

* [Corresponding issue on Discord](https://github.com/discord/discord-api-docs/issues/6203#issuecomment-1608151265)

* [A general recipe](https://gist.github.com/jagrosh/5b1761213e33fc5b54ec7f6379034a22)

---

For deleting the existing deployment I had to

```
gh api /repos/ente-io/ente/deployments --jq=".[].id"
gh api --method DELETE -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" "/repos/ente-io/ente/deployments/1375794893"
```

This helpful hint taken from https://github.com/orgs/community/discussions/46375. Thanks!
2024-03-08 12:30:58 +05:30
Manav Rathi
4da96a3b76 Add the workflow 2024-03-08 11:19:04 +05:30
Manav Rathi
e3f2a77d2c Add workflow (sans the deployment)
Ref: https://vitepress.dev/reference/cli
2024-03-08 09:53:26 +05:30