How to Create a Signed DMG File While Pipeline is Triggered

I create an Electron app, and I am using the Electron package builder module to make the distributable.

Since I can’t create the DMG file on my system and I can only create an EXE file, I’m using CI/CD to generate the artifact on every commit to GitHub.

In this current setup, I need to create a signed DMG file that I can distribute.

  1. Can I enroll in the Developer program without having an Apple device? (Or is there an alternative?)
  2. Can you please give me an idea of how the flow should look? My question is, if the DMG is getting created on CircleCI, then I have to change the config over there?

I don’t know what other questions to ask. I am so new to this (macOS ecosystem + programming in general).