hugo

Deploy hugo app && github actions

Deploying a Hugo Application with GitHub Actions GitHub Actions is a powerful tool for automating processes in GitHub repositories. In this article, we will discuss how to deploy a Hugo-based website using GitHub Actions. Configuring GitHub Actions Create a file named .github/workflows/deploy.yml in your repository. Add the following configuration to the deploy.yml file: name: Deploy website on: push: branches: - master jobs: deploy: runs-on: ubuntu-latest steps: - name: Get files uses: actions/checkout@v3 with: submodules: true fetch-depth: 0 - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: '0....

September 28, 2023 · 2 min · 232 words · Adam