-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Official GitHub Actions action does not work on macOS #11010
Comments
Our recommended GitHub Action is based on GitHub's Starter Action for Hugo. You would need to modify our recommended GitHub Action to be compatible with macOS. I have never tried this; I have never had a need to use anything other than Ubuntu in a CI/CD workflow. Please use the forum (https://discourse.gohugo.io/) for questions and troubleshooting. We prefer to use GitHub for verified bugs and vetted enhancements. Thanks. |
I'll reopen this. It's limited what we as a project can do, but this issue is at least within the scope of things I care (and know a little) about. |
Thanks @bep. My suggestion would be something like The main use case here (and I'm sure I can't be the first to run into this) is to ensure that all developers of https://github.com/cue-lang/cuelang.org can reliably follow steps in a readme and know that they will work. That requires us to have a build matrix that includes macOS (and windows, at a later date). |
@myitcv yea, we can do something like that ... as to naming the repo ... |
Do you know of any such patterns that exist today? The I'd suggest unless there are compelling reasons to stray from that (i.e. a clash with another very common pattern), the GitHub pattern is likely to dominate and hence be most "accessible" for folks. |
The example you gave had that context in the org name,
|
That's a good point. We (perhaps wrongly therefore) went with https://github.com/cue-lang/setup-cue. Building on your context point, I'll throw cc @mvdan who often has good ideas re naming. |
How about |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
This is still relevant. |
Please feel free to run the latest and greatest versions of Hugo (extended) through a combination of |
I would like this too, because:
name: Deploy Hugo site to Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Hugo
uses: gohugoio/hugo-action@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4 I would also suggest that the action runs the |
Totally reasonable on your part, @yochem – I would have pitched for my own project and its builds, but I understand the lack of trust that can come from unofficial, community-maintained ones. You could use the https://github.com/jmooring/hvm CLI tool to set up Hugo from the official releases with not too many lines of code. |
I could have a go with this if that's welcome. There are 3 different approaches for building custom GH actions:
Approach 1 might not be desired because most other Hugo things are in Go. Approach 2 might have a lot of overhead for the little that this action has to do (install and run hugo). Approach 3 it is not clear if it can be done in Go. We could opt for a simple shell script |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Please can I confirm that https://github.com/peaceiris/actions-hugo is the official action to install Hugo in GitHub Actions workflows? Is there an official place where this is documented?
Assuming that it is, there are two blockers to using that action to install Hugo on macOS:
peaceiris/actions-hugo#605
peaceiris/actions-hugo#608
It feels like there should be an official Hugo-project owned and maintained action to make the installation of Hugo as part of GitHub Actions seamless.
Thoughts?
The text was updated successfully, but these errors were encountered: