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

Suggestion: Automatically publish new versions (tagged commits) #90

Closed
brunoais opened this issue Feb 5, 2024 · 4 comments
Closed

Suggestion: Automatically publish new versions (tagged commits) #90

brunoais opened this issue Feb 5, 2024 · 4 comments

Comments

@brunoais
Copy link

brunoais commented Feb 5, 2024

FYI: If you are OK with automation, you can setup a GitHub action to publish on both open-vsx and vscode marketplace.

Example to publish on each new tag:
https://github.com/badetitou/vscode-pharo/blob/main/.github/workflows/publish.yml
A more detailed example:
https://github.com/HaaLeo/vscode-timing/blob/master/.github/workflows/cicd.yml#L1
The instructions of the action are here:
https://github.com/HaaLeo/publish-vscode-extension

How to make a secret:
https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository

(credit to @badetitou for the idea #71 (comment))

@brunoais brunoais changed the title Suggestion: Automatically publish new versions (tagged versions) Suggestion: Automatically publish new versions (tagged commits) Feb 5, 2024
@AntonKrug
Copy link
Contributor

@rjmacarthy would you like to me look into it and help? Maybe having a external self-hosted runners so it wouldn't take your credit and building it a container image so swapping between self-hosted runners or GH-hoseted runners would be easier?

@rjmacarthy
Copy link
Collaborator

Hey @AntonKrug sure if you are able to help that would be great. I was going to tackle this when the monthly credits roll over. I think we can stick with github actions for now, perhaps with push to main / master branch and will develop against dev branch in the future and merge for releases.

Many thanks,

@rjmacarthy
Copy link
Collaborator

I updated this now so that commits to main branch will trigger deployments. The development branch will be used for tracking pre-release status. I am having issues generating a token on OpenVSX right now but I opened an issue for it.

eclipse/openvsx#866

@rjmacarthy
Copy link
Collaborator

This is now completed and working on pushes to main. Thank you for the suggestion and help.

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

3 participants