diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4cc8bdb..70b2208 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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/ssh-action@v0.1.2 + uses: appleboy/ssh-action@v1.02 + with: + host: ${{secrets.SSH_HOST}} + key: ${{secrets.SSH_KEY}}