Skip to content
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.

Commit

Permalink
Second version of github action
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Feb 17, 2024
1 parent 1ad9c5f commit b5f6f4f
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/deploy_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
# - name: Setup Hugo
# uses: peaceiris/actions-hugo@v2
# with:
# hugo-version: 'latest'
# extended: true

- name: Build Hugo Site
run: hugo --source ./website
# - name: Build Hugo Site
# run: hugo --source ./website

- name: Deploy to Server
uses: appleboy/ssh-action@master
Expand All @@ -27,7 +27,11 @@ jobs:
username: ${{ secrets.DOCS_USER }}
key: ${{ secrets.DOCS_PRIVATE_KEY }}
script: |
cd /path/to/your/hugo/site/directory
git pull origin main
hugo --source ./website
# Optional: sudo systemctl restart nginx
cd /home/${{ secrets.DOCS_USER }}/trueblocks-key/website
git pull origin testing
pwd
find .
echo ${{ secrets.DOCS_USER }}:${{ secrets.DOCS_GROUP }}
# npm run build
# chown -R ${{ secrets.DOCS_USER }}:${{ secrets.DOCS_GROUP }} /home/${{ secrets.DOCS_USER }}/trueblocks-key/website
# cp -pR /home/${{ secrets.DOCS_USER }}/trueblocks-key/website /var/www/trueblocks-key/html

0 comments on commit b5f6f4f

Please sign in to comment.