diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 99a3895..2a37b5f 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -4,6 +4,7 @@ on: push: branches: - master + workflow_dispatch: jobs: build-and-deploy: @@ -19,13 +20,13 @@ jobs: with: ssh-key: ${{ secrets.SSH_KEY }} persist-credentials: false - submodules: true # Fetch Hugo themes (true OR recursive) - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Build site with Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: 'latest' + hugo-version: "latest" extended: true - name: Build @@ -41,7 +42,7 @@ jobs: uses: peaceiris/actions-gh-pages@v4 with: personal_token: ${{ secrets.GIT_PAGES_TOKEN }} - publish_dir: ./public + publish_dir: ./public publish_branch: gitea-pages - name: Deploy