Skip to content

feat: publish to two different remote VCS #149

Description

@Sieboldianus

My situation may appear a little bit untypically, but perhaps this is already implemented:

  • we have a closed Gitlab instance that we use for internal software development
  • we publish some of our branches/tools to Github, for external code collaboration

So far, I've only released releases in Github, because it was not possible in python-semantic-release to setup custom Gitlab instances.

Since GL_TOKEN became available, I'd also like to publish releases to the master branch on our custom Gitlab instance.

However, python-semantic-release seems to only use the remote that is set as default git remote. Is there any way to have it simultaneously publish releases to both Github and Gitlab using GH_TOKEN (e.g. remote origin) and GL_TOKEN (e.g. remote gl_origin)?

Alternatively, manually publishing/updating all releases to Gitlab would be totally ok for me, if there was such an option..

Activity

  1. relekang commented on Sep 19, 2019

    @relekang
    Member

    So is this about having a cli option to the changelog command to be able to push the changelog to gitlab as well?

  2. Sieboldianus commented on Sep 20, 2019

    @Sieboldianus
    ContributorAuthor

    Yes, either this, or a cli option to select the remote by name (and if it is a gitlab-remote, it will update/release the changelog using the GL_TOKEN; if it is a github-remote, it will update/release the changelog using the GH_TOKEN).

    Does this make sense?

    To add some information: we usually have two remotes, one for internal collaboration where we push additional branches etc., and a github-remote, where only the master branch is published. E.g.:

    git remote -v
    origin  [email protected]:user/package-xyz.git (fetch)
    origin  [email protected]:user/package-xyz.git (push)
    origin-internal      [email protected]:user/package-xyz.git (fetch)
    origin-internal      [email protected]:user/package-xyz.git (push)

    I'd like to publish the changelog/releases to both origin and origin-internal, currently, it is only posted to the default remote (origin) when using semantic-release publish.

  3. relekang commented on Sep 20, 2019

    @relekang
    Member

    That sounds like a good idea.

  4. added
    featureA new feature or a feature request
    help-wantedExtra attention is required
    on Sep 20, 2019
  5. alandtse commented on Mar 31, 2020

    @alandtse
    Contributor

    To add to this, I'd like the ability to identify a second branch to push to. I use a dual branch (dev/master) release system and that sounds like it could just built in to this feature request. There's added complexity allowing for multiple remotes over multiple branches but it seems like a natural extension.

    Let me know if you think multiple branch pushes should just be it's own request.

  6. added
    confirmedPrevent from becoming stale
    and removed on Mar 31, 2024
  7. 11 remaining items

  8. changed the title [-]Any way to set remote repository in cli mode?[/-] [+]feat: publish to two different remote publishing[/+] on Oct 3, 2024
  9. changed the title [-]feat: publish to two different remote publishing[/-] [+]feat: publish to two different remote VCS[/+] on Oct 3, 2024
  10. github-actions commented on Feb 1, 2025

    @github-actions

    It has been 60 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?

  11. thedannymarsh commented on Mar 19, 2025

    @thedannymarsh

    One way to accomplish this would also be to add a --remote-type command line option, then you could pass "gitlab" or "github", overriding the configuration file's remote.type.

  12. codejedi365 commented on Mar 20, 2025

    @codejedi365
    Contributor

    I would prefer a #1099 implementation so that I'm not maintaining adding a new cli option for every variance that comes up over the future of the project. We already have a lot.

    Have we considered what other options have to change once the new remote type changes? Is the remote URL gathered from the environment? Is the access token have the same name etc?

  13. github-actions commented on May 19, 2025

    @github-actions

    It has been 60 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?

  14. codejedi365 commented on May 20, 2025

    @codejedi365
    Contributor

    Still in backlog

  15. github-actions commented on Aug 18, 2025

    @github-actions

    It has been 90 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedPrevent from becoming stalefeatureA new feature or a feature requestneeds-updateNeeds status update from maintainers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions