Skip to content

Commit

Permalink
Use netlify instead of github pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
01100100 committed Jul 31, 2024
1 parent 67cffc5 commit 7e13fe6
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,22 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ./public
name: dist

# 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
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: dist
path: ./public
- name: Publish
uses: netlify/actions/cli@master
with:
args: deploy --dir=public
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 comments on commit 7e13fe6

Please sign in to comment.