maybe this time
Marco Andronaco andronacomarco@gmail.com
Tue, 10 Jan 2023 20:48:04 +0100
1 files changed,
11 insertions(+),
6 deletions(-)
jump to
M
.github/workflows/gh-pages.yml
→
.github/workflows/gh-pages.yml
@@ -1,14 +1,18 @@
-name: github pages +name: GitHub Pages on: push: branches: - - master # Set a branch that will trigger a deployment + - master # Set a branch name to trigger deployment pull_request: jobs: deploy: runs-on: ubuntu-22.04 + permissions: + contents: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v3 with:@@ -18,16 +22,17 @@
- name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: 'latest' - # extended: true + hugo-version: '0.101.0' - name: Build run: hugo --minify - name: Deploy uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/master' + # If you're changing the branch from main, + # also change the `main` in `refs/heads/main` + # below accordingly. + if: ${{ github.ref == 'refs/heads/master' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_branch: gh-pages publish_dir: ./public