hugo-deploy | Hugo site to GitHub Pages | Continous Integration library
kandi X-RAY | hugo-deploy Summary
kandi X-RAY | hugo-deploy Summary
Deploy your Hugo site to GitHub Pages, via GitHub Actions, with Arch Linux.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hugo-deploy
hugo-deploy Key Features
hugo-deploy Examples and Code Snippets
# .github/workflows/build.yml
name: build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Building...'
uses: reuixiy/hugo-deploy@v1
env:
DEPLOY_REPO: username/username.g
Community Discussions
Trending Discussions on hugo-deploy
QUESTION
I'll be using this GitHub Action in order to keep my Hugo Project in a private repository that will then, for the lack of better word, compile, and then publish the resulting static files to a public repository in which GitHub Pages has already been configured.
The YAML workflow for that is set to run on push, meaning whenever I push something new to the private repository, the Action is triggered and files on the public are updated.
Works perfectly except for one thing: If I create several posts with future dates, I'll effectively be committing them all at once, which means that most of the time I won't have anything relevant to push and, therefore, the Action will not be triggered.
Reading the docs I'm almost certain no other triggers would allow me, for example, to trigger the Action whenever a git fetch
— assuming that's what GitHub Desktop does in the background automatically whenever switching repositories — is performed.
The trigger that seemed to me the less cumbersome to solve this workaround this matter was, if I understood it correctly, the watch, that would allow me to commit all future posts at once as intended and then trigger the Action simply by starring the private repository.
But, I'm not really sure if that's the best one and, hence, I'd like to know if there's an alternative — regardless of personal opinions, let's be clear.
...ANSWER
Answered 2022-Mar-10 at 11:05Thanks to @matt in the comments I had the directions I needed and, after testing, it worked as intended.
I didn't know how to perform an empty commit, though, but it was easier than I thought:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hugo-deploy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page