Skip to content

Commit

Permalink
Update hugo.yml (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
15669072513 authored Sep 20, 2024
1 parent 1daf9d2 commit edd3556
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit edd3556

Please sign in to comment.