Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jerhe3 authored Jan 26, 2024
1 parent 6846c96 commit 6f9d67b
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# name: Build & Deploy
# on:
# push:
# branches: [main]
name: Build & Deploy
on:
push:
branches: [main]

# jobs:
# deploy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v2
# with:
# name: build
# path: build
# - name: Create SSH key
# run: |
# install -m 600 -D /dev/null ~/.ssh/id_rsa
# echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
# echo "${{ secrets.SSH_HOST }}" > ~/.ssh/known_hosts
# - name: Deploy with rsync
# run: rsync -rav --delete build/ user@host:/
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy ForestFolio
uses: appleboy/[email protected]
uses: appleboy/[email protected]
with:
host: ${{secrets.SSH_HOST}}
key: ${{secrets.SSH_KEY}}

0 comments on commit 6f9d67b

Please sign in to comment.