Skip to content

Commit

Permalink
added deploy to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxada committed Sep 5, 2023
1 parent b0280ca commit 9c28778
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,22 @@ jobs:
password: ${{ secrets.SSHPASSWORD }}
script: |
echo ${{ secrets.SSHPASSWORD }} | sudo -S systemctl restart nginx
gh-pages-deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'

steps:
- uses: actions/checkout@v3
- name: Download Build Artifact
uses: actions/download-artifact@v3
with:
name: build
path: build

- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build

0 comments on commit 9c28778

Please sign in to comment.