Skip to content

Commit

Permalink
部署到另外一个仓库
Browse files Browse the repository at this point in the history
  • Loading branch information
15669072513 authored Jun 18, 2024
1 parent 979f9f6 commit 722557f
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,26 @@ jobs:
run: |
hugo \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: ./public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
path: ./public

deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: sofastack/sofastack.github.io
publish_dir: ./public
# keep_files: true
publish_branch: deploy
# 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 722557f

Please sign in to comment.