From edd35564d35d0e388bf87f6a1e1855cbf9ecad32 Mon Sep 17 00:00:00 2001 From: liuhq <45447608+15669072513@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:03:48 +0800 Subject: [PATCH] Update hugo.yml (#1292) --- .github/workflows/hugo.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 7c3438b0..6c49a60b 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -63,15 +63,25 @@ jobs: uses: actions/upload-pages-artifact@v3 with: path: ./public - + - name: Pushes to another repository + uses: cpina/github-action-push-to-another-repository@main + env: + SSH_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} + with: + source-directory: 'public' + destination-github-username: 'sofastack' + destination-repository-name: 'sofastack.github.io' + target-branch: master # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 +# deploy: +# environment: +# name: github-pages +# url: ${{ steps.deployment.outputs.page_url }} +# runs-on: ubuntu-latest +# needs: build + + + # steps: + # - name: Deploy to GitHub Pages + # id: deployment + # uses: actions/deploy-pages@v4