Skip to content

Commit

Permalink
Add more deployment steps and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearcat committed Apr 23, 2024
1 parent fee744b commit 06ea5e7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,25 @@ jobs:
# extended: true

- name: Build
run: hugo --minify
run: cd better-ripe;hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/main'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public

- name: Deploy over SSH
uses: easingthemes/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
server: ${{ secrets.HOSTING_DEPLOY_HOST }}
remote_port: 22
server_user: deploy
server_key: ${{ secrets.HOSTING_DEPLOY_KEY }}
local_path: './public'
remote_path: /var/www/html
args: '-avz --delete'
branch: 'main'
# dry_run: true
# debug: true
Empty file added public/.keep
Empty file.

0 comments on commit 06ea5e7

Please sign in to comment.