Skip to content
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

feat: create release and add APK to CI release #2472

Merged
merged 2 commits into from
Apr 26, 2024
Merged

Conversation

bonomat
Copy link
Contributor

@bonomat bonomat commented Apr 25, 2024

Whenever we build APKs for main, we create a new release with the date format and attach the APKs

Untested... YOLO.

- name: Compute the release tag for continues ci build
if: ${{ inputs.tag == 'main' }}
run: |
echo "release_tag=v`date '+%Y-%m-%d %H:%M:%S'`" >> $GITHUB_ENV
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ why not simply call it latest?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imho latest is meant to be the "real" latest release, i.e. our proper release

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about preview? I don't know, I am a bit worried that we will get hundreds of tags which will pollute our release page.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tags are meant to be unique and immutable, i.e. we shouldn't have a moving tag which is moved for every new release.

I am a bit worried that we will get hundreds of tags which will pollute our release page.

This will indeed happen, but why is it a problem?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tags are meant to be unique and immutable, i.e. we shouldn't have a moving tag which is moved for every new release.

Are you sure about that? Some tags have special meaning and change frequently. E.g. latest.

This will indeed happen, but why is it a problem?

I don't know. It doesn't "feel" right to have a full release for every merged PR. But we can give it a go and see if it annoys us.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure about that? Some tags have special meaning and change frequently. E.g. latest.

Very certain about this. Imho there is no best practice around having a latest tag neither.

Unlike branches, tags are meant to be immutable, you can delete them but this might result in problems down the lines, e.g. we would need to

  • delete the released files or overwrite it
  • you don't know which commit latest is based on
  • you can use tags to checkout and build your work on, if you do this and the tag gets deleted and recreated you will have problems.

I don't know. It doesn't "feel" right to have a full release for every merged PR. But we can give it a go and see if it annoys us.

If this is the case, maybe we shouldn't do this after all 🤷.
An alternative would be to simply do nightly releases.

name: ${{ env.release_tag }}
tag_name: ${{ env.release_tag }}
target_commitish: main
generate_release_notes: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 I don't think we need release notes for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imho they can come handy to know what was changed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this always be just one line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right... it will always be the PR which was merged...

If android APK have been built for `main` we create a new release with the name and tag of format `vdate '+%Y-%m-%d %H:%M:%S'`.
We can't (or shouldn't) use the same tag for this such as `nightly` because tags are meant to be immutable.
@bonomat bonomat force-pushed the feat/create-ci-release branch from 8ba18b0 to a4a9750 Compare April 26, 2024 02:08
@bonomat
Copy link
Contributor Author

bonomat commented Apr 26, 2024

Had a quick chat with @luckysori : we created a separate repository for this purpose: https://github.com/get10101/10101-test-apks . We will create the releases there to not pollute this repository.

@bonomat bonomat merged commit 3c1e884 into main Apr 26, 2024
4 checks passed
@bonomat bonomat deleted the feat/create-ci-release branch April 26, 2024 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants