name: Build Hugo Site on: push: branches: - main jobs: build: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v4 with: submodules: true - name: Install Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: 'latest' extended: true - name: Ensure Output Directory is Writable run: | mkdir -p /mnt/hugo_output chmod -R 777 /mnt/hugo_output # Avoid permission issues - name: Clear Previous Build Output run: rm -rf /mnt/hugo_output/* - name: Build Hugo Site run: hugo --minify --destination /mnt/hugo_output --cleanDestinationDir --buildDrafts --buildFuture --buildExpired --disableFastRender - name: Verify Output Files run: ls -lah /mnt/hugo_output