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

rubygems publishing by tagging? #5

Closed
opoudjis opened this issue Aug 30, 2022 · 19 comments
Closed

rubygems publishing by tagging? #5

opoudjis opened this issue Aug 30, 2022 · 19 comments
Assignees

Comments

@opoudjis
Copy link
Contributor

I've started using tags instead of rake release to push out versions of gems. I've manually pushed mn-requirements to rubygems, since neither 0.0.3 nor 0.1.0 was pushed (the former 5 days ago). Could I confirm that tagging is set up to publish mn-requirements ?

@ronaldtse
Copy link

For starters, you need to run these commands to grant publication privileges.

gem owner mn-requirements -a ribose
gem owner mn-requirements -a metanorma

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Aug 30, 2022

Because we use general workflow for many repositories, some of them require access to GH rubygems.
@ronaldtse could you please confirm that this repo has access to both:

  • secrets.METANORMA_CI_RUBYGEMS_API_KEY
  • secrets.METANORMA_CI_PAT_TOKEN

*both are org-level secrets as far as I remember

@ronaldtse
Copy link

ronaldtse commented Aug 30, 2022

@CAMOBAP yes they are both available here, it is only with private repos we have to manually set. The issue is that @opoudjis needs to add the CI user as gem owner.

@opoudjis
Copy link
Contributor Author

Done.

@ronaldtse
Copy link

Confirm done.

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Aug 30, 2022

@ronaldtse @opoudjis should we rerun latest failed release workflow?

@opoudjis opoudjis removed their assignment Aug 30, 2022
@opoudjis
Copy link
Contributor Author

Btw, Github Actions is going to fail for all of mn-requirements, metanorma-standoc and isodoc, because of circular dependencies: they all need to be upgraded together.

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Aug 30, 2022

@opoudjis https://github.com/metanorma/metanorma-standoc/tree/main/.github/workflows doesn't have automatic release workflow as many other gems, I tried to add release workflow to only independent components

Anyway let me know if there is make sense to add/remove automatic release workflow for some repos

@ronaldtse
Copy link

@CAMOBAP we want automatic release for all gems in the metanorma, relaton orgs. Thanks!

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Aug 31, 2022

@CAMOBAP we want automatic release for all gems in the metanorma, relaton orgs. Thanks!

Ok

cc @andrew2net to be on the same page. AFAIK you are probably working on relaton projects more than others

Btw, Github Actions is going to fail for all of mn-requirements, metanorma-standoc and isodoc, because of circular dependencies: they all need to be upgraded together.

This "circle" comes from development deps, to me, it looks like the order should be:

  • mn-requirements
  • isodoc
  • metanorma-standoc

will it works?

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Aug 31, 2022

@ronaldtse could you please confirm that RELATON_CI_RUBYGEMS_API_KEY or similar is available for relaton org?

UPD. Just found that RELATON_CI_RUBYGEMS_API_KEY exists at least in relaton-cli I hope it defined on org level

@andrew2net just for you to know CI now will do push to rubygems once you did tag on the repo, in case of any issues don't hesitate to contact me

I'm going to add the same for all metanorma gems, probably I will create individual PR so we will be able to check each case individually to discuss possible circular deps or other potential problems

CAMOBAP added a commit to metanorma/metanorma-cli that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-utils that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-ogc that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-m3aawg that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-cc that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-vg that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-ribose that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-iho that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-ieee that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-gb that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-iec that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-ietf that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-standoc that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/metanorma-iso that referenced this issue Sep 4, 2022
CAMOBAP added a commit to metanorma/mn2sts-ruby that referenced this issue Sep 5, 2022
ronaldtse pushed a commit to metanorma/hk-ogcio-infosec-docs that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/bipm-si-brochure that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/mn-templates-cc that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/mn-templates-m3aawg that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/mn-templates-nist that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/mn-templates-itu that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/mn-templates-iec that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/mn-templates-iso that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/mn-templates-ogc that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/metanorma-registry that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/lapidist that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/rfc-divination-cfapi that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/rfc-asciidoc-rfc that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/rfc-asciirfc-minimal that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/mn2pdf-ruby that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/mnconvert-ruby that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/metanorma-plugin-datastruct that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to metanorma/rfc-camelot-holy-grenade that referenced this issue Sep 6, 2022
ronaldtse pushed a commit to ammitto/ammitto that referenced this issue Sep 6, 2022
@CAMOBAP
Copy link
Contributor

CAMOBAP commented Sep 6, 2022

CI configuration updated for all rmetanorma and relaton epos

@CAMOBAP CAMOBAP closed this as completed Sep 6, 2022
@andrew2net
Copy link

@CAMOBAP I've tried to make tag and push it to relaton-bipm repo but nothing happened.

error parsing called workflow "relaton/support/.github/workflows/release.yml@master": failed to fetch workflow: workflow was not found.

https://github.com/relaton/relaton-bipm/actions/runs/3028659644

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Sep 11, 2022

@andrew2net my bad forgot to push relaton/support could you please try one more time

Update: I just executed the release manually https://github.com/relaton/relaton-bipm/actions/workflows/release.yml (with skip option) to check if it works. It pass all steps just failed on rubygem.org push because this version already exists. so I tink now it works properly

@andrew2net
Copy link

@CAMOBAP I've already released the relaton-bipm using rake release command. Will try next time.

CAMOBAP added a commit to relaton/relaton-render that referenced this issue Sep 17, 2022
@andrew2net
Copy link

@CAMOBAP what is correct workflow to release gem?
I make a commit, then I push the commit and wait until all GHA tests completed, then create a tag and push it.
Then I push tag the GHA tests run again. I think we don't need it.

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Sep 20, 2022

Then I push tag the GHA tests run again. I think we don't need it.

Agree, we have workaround for this on metanorma gems, I will implement the same approach for relaton gems

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Sep 21, 2022

opoudjis pushed a commit to metanorma/mn-templates-itu that referenced this issue Mar 15, 2024
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

No branches or pull requests

4 participants