Commit graph

175 commits

Author SHA1 Message Date
Manav Rathi
cb45a070be
Tweaks 2024-03-27 12:58:17 +05:30
Manav Rathi
fc8e79fbe9
Remove double namespacing 2024-03-27 12:54:29 +05:30
Manav Rathi
7c0f41166c
Add a first cut of the publish script 2024-03-27 12:42:29 +05:30
Prateek Sunal
ee34291a54 fix: disable aab build if nightly or beta 2024-03-25 23:42:31 +05:30
Prateek Sunal
bc7309665d fix: linux error 2024-03-25 23:17:21 +05:30
Prateek Sunal
61f1610c8d fix: error on windows 2024-03-25 23:14:51 +05:30
Prateek Sunal
19c2e50ef2 feat: add system tray for desktop 2024-03-23 19:18:30 +05:30
Prateek Sunal
9e6e91fe7e Merge remote-tracking branch 'origin/main' into beta 2024-03-23 18:26:11 +05:30
Manav Rathi
bbeac2bdf0
[crowdin] Invalidate existing translations when source strings change
Don't upload existing translation when syncing with Crowdin. This way, we let
the existing translations be invalidated when we change the source string (this
was not happening previously since we also upload the (older) translations when
we upload the changed source strings).
2024-03-23 15:26:34 +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
Prateek Sunal
99fbfea65f chore: bump flutter to v3.19.3 2024-03-18 18:41:34 +05:30
Prateek Sunal
2a84f7810d Merge remote-tracking branch 'origin/main' into beta 2024-03-15 19:58:35 +05:30
Manav Rathi
7ddfeb93dd
Fix up the workflow 2024-03-14 17:32:54 +05:30
Prateek Sunal
5634b50528 Merge remote-tracking branch 'origin/main' into beta 2024-03-14 15:35:28 +05:30
Manav Rathi
1abf7edb99
[meta] Reduce the frequency of the sync translations cron
Every day is too much noise - we really only need this

- When a string gets changed in the source translation, in which case this
  workflow gets triggered automatically anyway.

- Before we do a new release (this doesn't automatically happen, but the
  workflow can be triggered manually if needed).

For now, reduce the frequency of the daily job to pull new translations from
Crowdin: now it'll only happen on Tuesdays and Fridays (just an arbitrary
choice).
2024-03-14 09:32:30 +05:30
vishnukvmd
df316463ef Ignore linter on the f-droid branch 2024-03-13 14:57:19 +05:30
vishnukvmd
f8d956d47f Fix path to APK 2024-03-13 12:22:11 +05:30
Vishnu Mohandas
92de88e778
[photos] Update flow for Independent APK (#1074) 2024-03-13 11:46:04 +05:30
Neeraj Gupta
077ba04664 [cli-release.yml] Pass release version in build flag 2024-03-13 11:43:19 +05:30
vishnukvmd
8f525cb88d Update Github Action for Photos 2024-03-13 11:27:24 +05:30
Manav Rathi
b15901df67
[workflows] Prevent duplicate runs of lint workflows after merging a PR 2024-03-12 14:14:18 +05:30
Manav Rathi
8c23090abd
Remove placeholders 2024-03-12 09:56:07 +05:30
Manav Rathi
6efe2cd5fd
Add a push trigger to register the workflow
See https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
2024-03-12 09:53:58 +05:30
Manav Rathi
4feea01879
[web] Support preview deployments 2024-03-12 09:52:34 +05:30
Manav Rathi
de166645b0 Point to the web alias for shared albums during nightly deployments 2024-03-11 13:20:58 +05:30
Manav Rathi
976a76ae23 [docs] Add a workflow to do a preflight verification of build on each PR 2024-03-11 10:59:47 +05:30
Prateek Sunal
d1ce545e5f chore: bump flutter in auth workflow 2024-03-10 12:24:50 +05:30
Prateek Sunal
9dad24313c fix: auth desktop workflow 2024-03-10 12:24:26 +05:30
Manav Rathi
8058d2bfd4 Add production deployments 2024-03-08 15:20:16 +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
215e89427d
[WIP] [docs] Deploy docs (#742)
Add a GitHub workflow to deploy docs. If this works, will start using
this same approach for the other web apps in our repo.
2024-03-08 13:30:28 +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
vishnukvmd
0ca29d2f83 [auth] Update workflow 2024-03-08 12:53:59 +05:30
vishnukvmd
bd455825e6 Enable AAB upload to PlayStore 2024-03-08 12:37:39 +05:30
vishnukvmd
b15d05050a Lower Flutter version 2024-03-08 12:37:27 +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
Manav Rathi
2101d06d32 export CGO_ENABLED=0
The configuration used by goreleaser (which we previously used to build the
release binaries) had set CGO_ENABLED=0. Since we don't specifically need this
to be on, revert to that configuration.

Also add a few more go build flags to reduce the size of the produced binaries

Ref:
- https://github.com/wangyoucao577/go-release-action/issues/33
- https://github.com/wangyoucao577/go-release-action
- https://github.com/ente-io/cli/blob/main/.goreleaser.yaml#L18

Related:
- https://github.com/ente-io/ente/issues/727
2024-03-07 12:00:17 +05:30
Manav Rathi
d3f3adc1f2 Tweak the Mastodon color 2024-03-06 18:12:48 +05:30
Manav Rathi
758d6a53e0 Use a color which works for both light and dark 2024-03-06 18:08:57 +05:30
Manav Rathi
45406d3486 Update badge 2024-03-06 18:04:32 +05:30
Manav Rathi
53d70387a4 Try to get the fill to work on GitHub 2024-03-06 17:58:42 +05:30
Manav Rathi
d7d127cb55 Tweak 2024-03-06 17:55:08 +05:30
Manav Rathi
cd60f4e590 Add download from GitHub button for auth
Icon made by Pragadees
2024-03-06 17:50:09 +05:30
Manav Rathi
f9b5cdb1e7 Tweak the icons to make them fit better 2024-03-06 17:34:48 +05:30
Manav Rathi
a053dbf872 Add Twitter and Mastodon links to README
Icons from Bootstrap icons (MIT licensed):
- https://icons.getbootstrap.com/icons/twitter/
- https://icons.getbootstrap.com/icons/mastodon/
2024-03-06 17:28:52 +05:30
Manav Rathi
d316a3049c [auth] Verify that the custom icon JSON is valid as part of lint checks
Purposely opening this PR against a known bad state to verify that the check
catches this issue.
2024-03-06 14:05:09 +05:30
Manav Rathi
0204fce22a [workflows] Use the same prefix title format as our own PRs for translation PRs 2024-03-06 10:48:27 +05:30
Manav Rathi
36d5aa9f01 Add mobile release workflow 2024-03-05 20:36:07 +05:30
Manav Rathi
9127d9540c Handle subdir 2024-03-05 16:49:45 +05:30
Manav Rathi
3cad79dfa9 Add museum release action 2024-03-05 16:39:11 +05:30
Manav Rathi
0b37f74636 Add museum lint action 2024-03-05 16:33:20 +05:30
Manav Rathi
50a9b38727 Disable md5s, keep only sha256es 2024-03-05 16:07:30 +05:30
Manav Rathi
e29704c381 Fix matrix 2024-03-05 16:03:14 +05:30
Manav Rathi
5bc43aa0c5 Create a job matrix 2024-03-05 16:01:31 +05:30
Manav Rathi
52d1540ad6 release-tag isn't working, go back to release-name but customize the asset title 2024-03-05 15:20:04 +05:30
Manav Rathi
197ea28f76 Restore permissions 2024-03-05 15:14:14 +05:30
Manav Rathi
a80c2b4d83 Retain the name to allow the action to find the existing release 2024-03-05 15:04:13 +05:30
Manav Rathi
d5f4c8d358 Fix the name of the generated assets 2024-03-05 15:01:39 +05:30
Manav Rathi
79f4c9ebd9 Try with reduced permissions 2024-03-05 14:59:29 +05:30
Manav Rathi
cec1d2cf4e Provide it a release_name to get it to pick the latest draft
Ref: https://github.com/wangyoucao577/go-release-action
2024-03-05 14:53:08 +05:30
Manav Rathi
e376decec1 Try with packages 2024-03-05 14:51:26 +05:30
Manav Rathi
d6ac40b047 Need to create a release first 2024-03-05 14:37:57 +05:30
Manav Rathi
d627fdc0fd Add permissions
Ref:
- https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
- https://github.com/wangyoucao577/go-release-action/issues/119
2024-03-05 14:35:42 +05:30
Manav Rathi
0e5a0120b2 Create a release first 2024-03-05 14:30:16 +05:30
Manav Rathi
fb6dbde198 Try an alternative action that allows tags prefixes
goreleases doesn't like it if we give it a tag with a prefix, as is our case
with "cli-...".

> ⨯ release failed after 0s error=failed to parse tag 'cli-v0.0.0-rc2' as
    semver: Invalid Semantic Version
2024-03-05 14:17:24 +05:30
Manav Rathi
4c1bb65620 Remove deprecated flag
From the action run:

> DEPRECATED: --rm-dist was deprecated in favor of --clean, check https://goreleaser.com/deprecations#-rm-dist for more details
2024-03-05 13:47:08 +05:30
Manav Rathi
1b9af538fd Add CLI release workflow 2024-03-05 13:42:25 +05:30
Manav Rathi
cbf0223f07 Stop unnecessary lint workflows from running on pushing tags
Ref:
- https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushbranchestagsbranches-ignoretags-ignore
- https://stackoverflow.com/questions/77667104/how-to-make-github-action-trigger-on-push-paths-and-push-tags
- https://github.com/orgs/community/discussions/26273
2024-03-05 13:10:03 +05:30
Manav Rathi
a20e1bc0d4 Remove temporary testing code 2024-03-05 12:24:41 +05:30
Manav Rathi
dae1be0729 Fix macOS build 2024-03-05 12:08:20 +05:30
Manav Rathi
e974e1dba2 Add macOS 2024-03-05 11:43:12 +05:30
Manav Rathi
9af7bf3cd0 Temporarily disable the build steps 2024-03-05 11:29:15 +05:30
Manav Rathi
4eaf8c784b Windows steps 2024-03-05 11:27:34 +05:30
Manav Rathi
a26c4892e7 Use github.ref_name
The existing thing we were using didn't seem to work. Not sure if it ever did,
or if we were just pushing nightlies so far.

Thanks to this suggestion:

            - name: Dump env
              run: env | sort
            - name: Dump GitHub context
              run: echo "$GITHUB_CONTEXT"
              env:
                GITHUB_CONTEXT: ${{ toJson(github) }}

https://stackoverflow.com/questions/59518658/how-to-use-github-release-version-number-in-github-action
2024-03-05 10:54:21 +05:30
Manav Rathi
36ffdc3d79 Include the shasum 2024-03-05 09:59:56 +05:30
Manav Rathi
84cca19f59 Document 2024-03-05 09:57:19 +05:30
Manav Rathi
23de6f33cc Fixes from first run 2024-03-05 09:42:06 +05:30
Manav Rathi
006a3ea60d WIP Add GitHub Action for releasing the auth app (mobile and desktop) 2024-03-04 21:49:21 +05:30
Manav Rathi
4b5d355dec Do the same for auth and web 2024-03-04 16:27:35 +05:30
Manav Rathi
160c1c79df Try to get it to pick the right yml 2024-03-04 16:23:54 +05:30
Manav Rathi
eba3d1867e Point our our yarn lock 2024-03-04 16:01:36 +05:30
Manav Rathi
6d96a7c569 Fix the cache param 2024-03-04 15:59:46 +05:30
Manav Rathi
6362cd8bed Fix path 2024-03-04 15:59:08 +05:30
Manav Rathi
3af6739f85 Fix name 2024-03-04 15:58:52 +05:30
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