Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Private repo to public repo release #1050

Closed
developerautomationkit opened this issue Nov 17, 2024 · 3 comments
Closed

Private repo to public repo release #1050

developerautomationkit opened this issue Nov 17, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@developerautomationkit
Copy link

Seeing that you are hard at work again . I wanted to ask if you know by chance how to configure electron builder + github actions for pushing to a Private repo to public repo release in github actions ?

Iam using older version of you template and just wondered if you have any idea by chance what could be wrong

this is a issue i created couple days ago : Just cant figure out why electron builder does not seem to work with Custom Personal Accces token ? Any thoughts on how you would aproach this release on Private repo to public repo release ? Greetings

electron-userland/electron-builder#8676

@cawa-93
Copy link
Owner

cawa-93 commented Nov 17, 2024

- run: gh release create v${{inputs.app-version}} dist/root* dist/latest*.yml --repo ${{github.repository}}
env:
GH_TOKEN: ${{ github.token }}

@developerautomationkit
Copy link
Author

developerautomationkit commented Nov 17, 2024

- run: gh release create v${{inputs.app-version}} dist/root* dist/latest*.yml --repo ${{github.repository}}
env:
GH_TOKEN: ${{ github.token }}

to my knowledge the github.token is restricted to the current repo ?
Is that not the case ? any experience regarding having to use Personal acces token PAT ?

I feel like this is a very common usecase having a private repo and releasing to a public one . But for the love of god cant figure out why the github actions doesnt work with electron builder PAT :D

But I guess your github create aproach may work with pat .. gotta try that

@cawa-93
Copy link
Owner

cawa-93 commented Nov 17, 2024

Currently I don't use electron builder for publishing. I use gh cli instead to have for control. And I believe you can authorise it and create release in one repo from another. Just ensure you provide correct credentials with enough permission in credentials and workflow

Repository owner locked and limited conversation to collaborators Nov 17, 2024
@cawa-93 cawa-93 converted this issue into discussion #1051 Nov 17, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants