Skip to content

Commit

Permalink
try to use a different tool to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony committed Jul 22, 2024
1 parent 386f709 commit 84a57c8
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/gh-deploy-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Release to Github Pages
name: Deploy Test to Github Pages

on:
push:
Expand Down Expand Up @@ -49,14 +49,11 @@ jobs:
# with:
# branch: gh-pages
# folder: ${{env.OUTPUT_PATH}}/wwwroot

- name: Deploy Test Github Pages
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/block-core/angor-test.git angor-test
rsync -av --delete Output/wwwroot/ angor-test/
cd angor-test
git add .
git commit -m "Deploy to secondary GitHub Pages site"
git push origin gh-pages

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.GITHUB_TOKEN }}
external_repository: block-core/angor-test
publish_branch: main # default: gh-pages
publish_dir: ./public

0 comments on commit 84a57c8

Please sign in to comment.