-
Notifications
You must be signed in to change notification settings - Fork 12
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
build(publication): modifying workflows to publish snapshot packages #27
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,3 +79,26 @@ jobs: | |
steps: | ||
- name: Check whether all jobs pass | ||
run: echo '${{ toJson(needs) }}' | jq -e 'all(.result == "success")' | ||
|
||
# Publish snapshot packages. These jobs will only be triggered when the CI is executed on main. | ||
publish_jvm_snapshot_package: | ||
name: Publish JVM snapshot package | ||
if: github.ref == 'refs/heads/main' | ||
needs: ci | ||
uses: ./.github/workflows/publish_jvm.yml | ||
permissions: | ||
contents: read | ||
packages: write | ||
with: | ||
version: 0.11.0-rc-SNAPSHOT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While this is technically valid semver, it is quite confusing (i.e. being a snapshot of a release candidate). I suggest going with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Starting from the next release, we will drop the |
||
|
||
publish_android_snapshot_package: | ||
name: Publish Android snapshot package | ||
if: github.ref == 'refs/heads/main' | ||
needs: ci | ||
uses: ./.github/workflows/publish_android.yml | ||
permissions: | ||
contents: read | ||
packages: write | ||
with: | ||
version: 0.11.0-rc-SNAPSHOT |
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.
How much slower will the CI be because of 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.
Publications tend to take around 10 minutes.
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.
So that almost doubles it, making it ~20mins. I don't see it as particularly problematic. But we can always do it later on a nightly basis if it turns out to be too long.
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.
So far the cron job is set to be run at 6am, I think it's ok, if not we can change it later as you say.