Skip to content

Rough add withdeploy#659

Open
arnaudlevy wants to merge 7 commits into
peaceiris:mainfrom
noesya:main
Open

Rough add withdeploy#659
arnaudlevy wants to merge 7 commits into
peaceiris:mainfrom
noesya:main

Conversation

@arnaudlevy
Copy link
Copy Markdown

Fix #658

Missing tests, not even tried as I don't have all the setup.
Hope the PR is not too bad.

@arnaudlevy arnaudlevy requested a review from peaceiris as a code owner November 5, 2024 07:22
Comment thread src/get-url.ts Outdated
@deining
Copy link
Copy Markdown
Contributor

deining commented Nov 10, 2024

Thanks for this PR!
I took it over to my fork of this repo, made a release there and tested this release with one of my projects. Everything worked like a charm, great job!
Looking forward seeing this PR merged soon.

Copy link
Copy Markdown

@PScoriae PScoriae left a comment

Choose a reason for hiding this comment

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

looks great!

@Fale
Copy link
Copy Markdown

Fale commented Dec 4, 2024

what's missing for this to get merged?

@SebouChu
Copy link
Copy Markdown

SebouChu commented Dec 16, 2024

Hello @PScoriae! Any update or schedule about this being merged? Thanks!

@mschfh
Copy link
Copy Markdown

mschfh commented Dec 25, 2024

@peaceiris Could we please get this merged?

oasys added a commit to oasys/www.oasys.net that referenced this pull request Jan 7, 2025
   Will need actions-hugo to support `withdeploy: true` from
   peaceiris/actions-hugo#659 and then this can be changed
   back to 'latest'.
@jbouse
Copy link
Copy Markdown

jbouse commented Feb 15, 2025

This lacks the proper condition testing that #663 included that ensured that both extended and withdeploy were set to get the extended/withDeploy edition of Hugo. This appears to not gracefully catch this situation if you don't set extended to True along with adding withdeploy.

@arnaudlevy
Copy link
Copy Markdown
Author

arnaudlevy commented Feb 15, 2025

@jbouse you are perfectly right!

May I remind you that it's completely broken right now? Perhaps, if you don't feel like coding the fix yourself, you could open an issue for what you are pointing? Merging the PR would allow everyone to use this action with the proper Hugo version.

A notice in the readme would be a good thing too, while it's not fixed, what do you think?

@jorkle
Copy link
Copy Markdown

jorkle commented Mar 25, 2025

Hi All,

I have been leveraging the peaceiris/actions-hugo for the github actions deployment pipeline that I have in place to automatically deploy to my staging and production environments for my blog (jorkle.com).

I've been watching this pending merge for the 'withdeploy' fix for a month or so as the hugo theme I happen to use leverages features from a hugo version after the withdeploy was added. Meaning that I was unable to leverage the Hugo FixIt theme with my github action for auto deployments to AWS S3 until this fix was merged.

I went ahead and tried to test this proposed fix for the 'withdeploy' issue and wanted to share the results and logs in the event this information would be helpful for your testing/validation purposes of this merge request.

To test the this 'withdeploy' fix I did the following:

  1. I created a fork of peaceiris/actions-hugo (https://github.com/jorkle/actions-hugo-withdeploy-temp)
  2. I added the "https://github.com/noesya/actions-hugo/tree/main" as a git remote with git remote add fix "https://github.com/noesya/actions-hugo/tree/main"
  3. I merged the changes locally for the two remotes. (git config pull.rebase false, git pull fix main, git push origin main)
  4. Now that https://github.com/jorkle/actions-hugo-withdeploy-temp has the changes from 'noesya/actions-hugo' merged. I ran the "release.sh" to generate a release (./release.sh)
  5. I updated my the github actions 'deploy-staging.yml' that I use for my blog https://jorkle.com to use uses: jorkle/actions-hugo-withdeploy-temp@88ed9e517c81f665fd90e09f2ff9fa27ac3e7cb8 instead of uses: peaceirus/actions-hugo....
  6. Initially I encountered an issue because I set the 'hugo-version' field in the actions yaml file to be '0.137.0. But this issue was unrelated to this merge. The issue was due to the fact that the Hugo FixIt theme leverages a feature that was added in Hugo version 0.144.0 ("try" function). So I updated the hugo-version line in the github actions yaml to use '0.144.1' as the hugo version.
  7. After making that change for the issue (not due to the proposed merge/fix) the github actions for my blogs deployment ran successfully.

I've included below a copy of the Github Actions yaml file that I tested this proposed fix with along with the log file from the successful github actions run. I've censored out the mention of my S3 bucket's name for my blog from the github actions log file. Everything else is verbatim.

Github Actions file (that I leveraged this proposed 'withdeploy' fix) for my blogs deployment: https://gist.github.com/jorkle/28e8dbf05f90d946f57bb4ea5c1bdc8b
Git Actions log file (from the execution of the linked github action file): https://gist.github.com/jorkle/e65302e75450abea021d1832d1263c95

Copy link
Copy Markdown

@razor-1 razor-1 left a comment

Choose a reason for hiding this comment

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

Suggesting a change to enable extended whenever withdeploy is set.

Comment thread src/get-url.ts Outdated
@razor-1
Copy link
Copy Markdown

razor-1 commented Apr 13, 2025

@peaceiris this should be good to go now, can we get it merged and a new release cut to un-break production usage? Thank you

@SebouChu
Copy link
Copy Markdown

@peaceiris Any news about this? Thanks ❤️

@arnaudlevy
Copy link
Copy Markdown
Author

Hi @peaceiris do you need anything to merge this? Can we help? Thanks!

@SebouChu
Copy link
Copy Markdown

Given the situation is locked for almost 7 months, on our side, we now use a release branch of this fork to be able to use the latest Hugo version with the withdeploy option. See here for example: osunyorg/admin@f298c50

@peaceiris Please keep us updated on when you can merge this PR. That would be great. Thanks :)

@jason-dour-e
Copy link
Copy Markdown

Seven months with no resolution; several months since adequate code available if the above thread is to be believe.

Sounds like it is time to back a forked and rebranded version of this Action.

ssingh484 pushed a commit to ssingh484/notes that referenced this pull request Apr 17, 2026
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

Successfully merging this pull request may close these issues.

proposal: hugo >0.137.0: offer possibility to use 'withdeploy' release

10 participants