Skip to content

Commit a524be2

Browse files
committed
try different deployment action
1 parent eba148c commit a524be2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ jobs:
3535
uses: actions/jekyll-build-pages@v1
3636
with:
3737
source: ./posts
38-
destination: ./_site/${{ github.head_ref || github.ref_name }}
38+
destination: ./_site/${{ github.head_ref || github.ref_name }}
3939
- name: Upload artifact
4040
uses: actions/upload-pages-artifact@v3
41-
with:
42-
path: ./_site/${{ github.head_ref || github.ref_name }}
4341

4442
# Deployment job
4543
deploy:
4644
environment:
4745
name: github-pages
48-
url: ${{ steps.deployment.outputs.page_url }}${{ github.head_ref || github.ref_name }}
4946
runs-on: ubuntu-latest
5047
needs: build
5148
steps:
52-
- name: Deploy to GitHub Pages
53-
id: deployment
54-
uses: actions/deploy-pages@v4
49+
- name: Deploy
50+
uses: JamesIves/github-pages-deploy-action@v4
51+
with:
52+
folder: ./_site/${{ github.head_ref || github.ref_name }}
53+
target-folder: "${{ github.head_ref || github.ref_name }}" # The folder the action should deploy to.
54+

0 commit comments

Comments
 (0)