JuliaRegistries / TagBot

Creates tags, releases, and changelogs for your Julia packages when they're registered
https://github.com/marketplace/actions/julia-tagbot
MIT License
91 stars 18 forks source link

How to use it with private registry? #290

Open sairus7 opened 10 months ago

sairus7 commented 10 months ago

I have a github org with private registry and I'm registering new package versions manually with LocalRegistry:

using LocalRegistry
register(package)

Now I'm lacking automatic git tag and github releases bound to each new version.

So I've added TagBot to my package but it didn't work. Seems like TagBot relies on Registrator github app. Should I enable it for my private registry and switch to it to register new versions?

terasakisatoshi commented 10 months ago

Hi, @sairus7

This section Custom Registries might be helpful?

name: TagBot
...
...<Omission >
...
jobs:
  TagBot:
    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
    runs-on: ubuntu-latest
    steps:
      - uses: JuliaRegistries/TagBot@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          ssh: ${{ secrets.DOCUMENTER_KEY }} # required to add tags
          registry: MyOrg/MyRegistry
          registry_ssh: ${{ secrets.REGISTRY_SSH_KEY }} # required to pull/clone MyOrg/MyRegistry
sairus7 commented 10 months ago

Looks like this works only with Registrator GitHub app that should be set up properly: https://github.com/JuliaRegistries/Registrator.jl/issues/421

So for now I'm just using a custom action https://gist.github.com/sairus7/f5e827270dd1789645415e7f2ec84a7e

terasakisatoshi commented 10 months ago

🤔 It worked in my Organization

FYI I created DOCUMENTER_KEY by following instructions on this link: https://github.com/JuliaRegistries/TagBot/issues/227#issuecomment-1784011651