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

Add Chocolatey publishing #4706

Closed
wants to merge 4 commits into from
Closed

Conversation

panekj
Copy link

@panekj panekj commented Oct 23, 2022

Fixes #3714

You need to set secret CHOCOLATE_KEY with API key from Chocolatey

@github-actions
Copy link

github-actions bot commented Oct 23, 2022

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@panekj
Copy link
Author

panekj commented Oct 23, 2022

I have read the CLA Document and I hereby sign the CLA

@panekj panekj force-pushed the feat/chocolatey-builds branch 3 times, most recently from df56dee to 9cd2f31 Compare October 25, 2022 15:27
@panekj panekj marked this pull request as ready for review October 25, 2022 15:27
@panekj panekj changed the title Add Chocolatey publishing and MSI builds for winget Add Chocolatey publishing Oct 25, 2022
@deansheather deansheather self-requested a review October 25, 2022 15:49
set -e

function choco {
mono /opt/chocolatey/choco.exe "$@" --allow-unofficial --nocolor
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of running this in mono in a docker container, could this just run on a windows runner instead? A similar PR for winget had the idea of just running this publish step post-publish by using

on:
  release:
    types: [published]

Then we could just use runs-on: windows-latest, install chocolatey and use it the normal way.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, I've initially reused work from other project I maintain where it just runs as GitHub action as container

@panekj
Copy link
Author

panekj commented Oct 25, 2022

Since exe installer has been added, I've removed MSI building but let me know if you would be still interested in it

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

This Pull Request is becoming stale. In order to minimize WIP, prevent merge conflicts and keep the tracker readable, I'm going close to this PR in 3 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label Nov 3, 2022
@github-actions github-actions bot closed this Nov 6, 2022
@ghuntley ghuntley reopened this Nov 8, 2022
@ghuntley
Copy link
Contributor

ghuntley commented Nov 8, 2022

Thanks for sending in the pull-request @panekj I'm going to have a look/review after lunch. A quick note to say haven't forgotten!

Comment on lines +10 to +12
&& chmod +x build.sh zip.sh \
&& ./build.sh -v \
&& mv ./code_drop/chocolatey/console /opt/chocolatey \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ghuntley these steps shouldn't be necessary. Manually building Chocolatey is no longer required, as we ship a Docker Image ready to be used: https://hub.docker.com/u/chocolatey

.github/actions/chocolatey/entrypoint.sh Outdated Show resolved Hide resolved
set -e

function choco {
mono /opt/chocolatey/choco.exe "$@" --allow-unofficial --nocolor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you switch to using the official Docker image, usage of --allow-unofficial will not be required.

@github-actions github-actions bot removed the stale This issue is like stale bread. label Nov 9, 2022
@deansheather
Copy link
Member

Needs to be moved to .github/workflows/package.yaml to be alongside the winget PR too.

@ghuntley ghuntley mentioned this pull request Nov 14, 2022
4 tasks
@github-actions
Copy link

This Pull Request is becoming stale. In order to minimize WIP, prevent merge conflicts and keep the tracker readable, I'm going close to this PR in 3 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label Nov 17, 2022
@github-actions github-actions bot closed this Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This issue is like stale bread.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows packages (winget, choco, etc)
4 participants