Commit graph

36 commits

Author SHA1 Message Date
Manav Rathi
a599ddbfc1 Cache 2024-03-04 15:58:16 +05:30
Manav Rathi
7d526c2e6d Also add a auth lint 2024-03-04 15:44:26 +05:30
Manav Rathi
4ebbed82d6 Watch for changes in the workflow itself
And also install flutter
2024-03-04 15:20:28 +05:30
Manav Rathi
e3f90a1c4e Set default working directory for all run steps in the job
Ref:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun
2024-03-04 13:00:12 +05:30
Manav Rathi
e15e39fb6c Crowdin project_id is already public
It is shown on the public project page
2024-03-04 12:54:49 +05:30
Manav Rathi
b00ce0b91f Add base path
Ref:

- https://github.com/crowdin/github-action
- https://crowdin.github.io/crowdin-cli/faq
2024-03-04 12:03:18 +05:30
Manav Rathi
0062bc0fdd Add Flutter linter for mobile
The older version seemed to be disabled (it was getting triggered on a
non-existent master branch), so I'm not sure if we want this on right now. But
let's give it a go, will remove if it this needs some cleanup first.
2024-03-04 12:03:18 +05:30
Manav Rathi
fa7298daf2 Add auth's crowdin action 2024-03-04 11:39:38 +05:30
Manav Rathi
c6e1a0f59c Add mobile crowdin action 2024-03-04 11:37:21 +05:30
Manav Rathi
136124c450 WIP Resurrect web related GitHub actions 2024-03-04 11:27:01 +05:30
Manav Rathi
1ce407481c Fix links in CONTRIBUTING.md
Fixes https://github.com/ente-io/ente/issues/512
2024-03-02 12:02:25 +05:30
Manav Rathi
e9d76688ce Move to monorepo
Move all of our code into a monorepo in preparation of open sourcing our server.

First I describe the general plan, then later I've kept an exact log of the
commands that I used. This was all done prior to this commit, but this commit
(that introduces the various top level files) seems like a good way to summarize
the entire process.

Clone auth. Auth is our base repository.

```sh
git clone https://github.com/ente-io/auth.git && cd auth
```

Move all of auth's files into `auth/`.

```sh
mkdir auth
git mv `find . -maxdepth 1 | grep -v -e '\.$' -e '\.\/.git$' -e '\.\/auth$'` auth
git commit -m 'Move into auth/'
```

Add photos-web as a new remote, and fetch its main.

```sh
git remote add photos-web https://github.com/ente-io/photos-web.git
git fetch photos-web main
```

Switch to main of web-photos.

```sh
git checkout -b photos-web-main photos-web/main
```

Move all of its files into `web` (note, the find now has an extra exclusion for
`web`, but we keep all the old ones too):

```sh
mkdir web
git mv `find . -maxdepth 1 | grep -v -e '^\.$' -e '^\.\/.git$' -e '^\.\/auth$' -e '^\.\/web$'` web
git commit -m 'Move into web/'
```

Switch back to main main, and merge the photos-web branch. The
`--allow-unrelated-histories` flag is needed (since these two branches don't
have any previous common ancestor).

```sh
git checkout main
git merge --allow-unrelated-histories photos-web-main
```

That's it. We then repeat this process for all the other repositories that we
need to bring in.

There is no magic involved here, so regular git commands will continue working.
However, all the files get renamed, so to track the git history prior to this
rename commit we'll need to pass the `--follow` flag.

    git log --follow -p -- auth/migration-guides/encrypted_export.md

For some file names like README.md which exist in multiple repositories, this
doesn't seem to work so good (I don't fully understand why). For example,
`git log --follow -p -- auth/README.md lists the changes to all the READMEs,
not just the auth README.md.

```sh

git clone https://github.com/ente-io/auth.git ente
cd ente

mkdir auth
git mv `find . -maxdepth 1 | grep -v -e '\.$' -e '\.\/.git$' -e '\.\/auth$'` auth
git commit -m 'Move into auth/'

git remote add photos-web https://github.com/ente-io/photos-web.git
git fetch photos-web main
git checkout -b photos-web-main photos-web/main

mkdir web
git mv `find . -maxdepth 1 | grep -v -e '^\.$' -e '^\.\/.git$' -e '^\.\/auth$' -e '^\.\/web$'` web
git commit -m 'Move into web/'

git checkout main
git merge --allow-unrelated-histories photos-web-main
git branch -D photos-web-main
git remote remove photos-web

git remote add photos-app https://github.com/ente-io/photos-app.git
git fetch photos-app main
git checkout -b photos-app-main photos-app/main

mkdir mobile
git mv `find . -maxdepth 1 | grep -v -e '^\.$' -e '^\.\/.git$' -e '^\.\/auth$' -e '^\.\/web$' -e '^\.\/mobile$'` mobile
git commit -m 'Move into mobile/'

git checkout main
git merge --allow-unrelated-histories photos-app-main
git branch -D photos-app-main
git remote remove photos-app

git remote add photos-desktop https://github.com/ente-io/photos-desktop.git
git fetch photos-desktop main
git checkout -b photos-desktop-main photos-desktop/main

mkdir desktop
git mv `find . -maxdepth 1 | grep -v -e '^\.$' -e '^\.\/.git$' -e '^\./.gitmodules$' -e '^\.\/desktop$'` desktop
git mv .gitmodules desktop
git commit -m 'Move into desktop/'

git checkout main
git merge --allow-unrelated-histories photos-desktop-main
git branch -D photos-desktop-main
git remote remove photos-desktop

git remote add cli https://github.com/ente-io/cli.git
git fetch cli main
git checkout -b cli-main cli/main

mkdir cli
git mv `find . -maxdepth 1 | grep -v -e '^\.$' -e '^\.\/.git$' -e '^\.\/cli$'` cli
git commit -m 'Move into cli/'

git checkout main
git merge --allow-unrelated-histories cli-main
git branch -D cli-main
git remote remove cli

git remote add docs https://github.com/ente-io/docs.git
git fetch docs main
git checkout -b docs-main docs/main

mkdir docs-1
git mv `find . -maxdepth 1 | grep -v -e '^\.$' -e '^\.\/.git$' -e '^\.\/docs-1$'` docs-1
git mv docs-1 docs
git commit -m 'Move into docs/'

git checkout main
git merge --allow-unrelated-histories docs-main
git branch -D docs-main
git remote remove docs
```
2024-03-01 13:01:41 +05:30
Manav Rathi
c76b96a74b Move into auth/ 2024-03-01 12:19:20 +05:30
Prateek Sunal
23e0a73e61
Create desktop.yml (#448)
Created desktop.yml as currently main branch doesn't have it so I can't
run workflow of beta
- [x]  Build configuration change
2024-02-12 21:24:37 +05:30
Vishnu Mohandas
cf4ff27e9a
Update issue templates 2023-10-21 11:47:17 +05:30
Neeraj Gupta
63aa50aaac Upgrade flutter version: 3.13.4 2023-09-28 20:53:52 +05:30
vishnukvmd
257aae0d6a Update PR template 2023-09-13 22:40:42 +05:30
Neeraj Gupta
c413564a4b Add Contribution doc 2023-09-02 09:58:42 +05:30
Neeraj Gupta
0d9223e6ea Upgrade flutter: 3.10.6 2023-08-18 20:03:51 +05:30
Neeraj Gupta
4d13ca6c1d Use env variable to identify Github APKs 2023-08-12 11:51:54 +05:30
Neeraj Gupta
b06649b9c9
Add CI config for crowdin action 2023-03-18 11:41:33 +05:30
Manav
317ba39f46 Update to cla-assistant.io for CLA shared across ente
Replace the manual per-repository integration with the standard cla-assistant.io
setup for integrating a single CLA across all ente repositories.

Updated CLA: https://gist.github.com/enteio/f3b9abc4e047425da3e1538cde903b4d
2023-02-16 20:26:27 +05:30
Neeraj Gupta
e6fb1d6fc0
Upgrade flutter: 3.7.3 2023-02-16 09:07:39 +05:30
Manav
cb93a0658f Use direct path
Removes the dependency of this build step on the previous build step.
2023-01-28 14:58:47 +05:30
Manav
97f665e8cf Remove unneeded mapping files 2023-01-28 14:57:55 +05:30
Manav
99516650fe Fix path 2023-01-28 14:01:10 +05:30
Manav
3928ccc6b7 Build a playstore variants 2023-01-28 13:49:42 +05:30
Manav
699f906843 Skeleton for upload-google-play 2023-01-28 13:39:24 +05:30
Manav
9f686d38ed Run the CLA bot only on comments to PR
Right now, it unnecessarily runs and sends an email when customers open issues.

Not tested, but can test it by opening an issue after this is merged.

Reference:
- https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment
2023-01-06 15:15:10 +05:30
Manav
550a955c1a Add CLA 2022-12-12 14:17:14 +05:30
Manav
b0d89cc568 Configure cla-assistant 2022-12-12 11:58:26 +05:30
vishnukvmd
ec4df467a0 Up flutter version to 3.3.8 2022-11-11 20:23:48 +05:30
vishnukvmd
41fd5337a6 Fix link to checksum 2022-11-11 20:23:29 +05:30
vishnukvmd
3058a86ffb Up Flutter version 2022-11-01 18:42:12 +05:30
vishnukvmd
0f2bec5fe0 Setup Github action for Independent APK 2022-11-01 18:17:29 +05:30
vishnukvmd
9728a0f224 Hello, world 2022-11-01 11:43:06 +05:30