peaceiris / actions-hugo

GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported.
https://github.com/marketplace/actions/hugo-setup
MIT License
1.42k stars 85 forks source link

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

Open deining opened 3 days ago

deining commented 3 days ago

Checklist

Describe your proposal

As of hugo version 0.137.0, the deploy subcommand is not part of hugo's extended version any more. If you still want to make use of hugo deploy feature, you have to download and install a release with 'withdeploy' in the archive filename. See https://github.com/gohugoio/hugo/pull/12995 for further details.

Describe the solution you'd like

As far as I can see, currently it is not possible to make use of the withdeploy version inside of a workflow definition. Therefore I would like to propose to introduce a new boolean option withdeploy that allows to make use of the hugo verison that includes the deploy feature:

      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v3
        with:
          hugo-version: '0.119.0'
          extended: true
          withdeploy: true  # <-- request to add this new option

Describe alternatives you've considered

None

Additional context

None

andrlik commented 3 days ago

Yeah, not having this option breaks any GA based deployment workflows.

peaceiris commented 2 days ago

Nice catch! ʕ◔ϖ◔ʔ