adds action #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Eleventy build and deploy | ||
on: | ||
push: | ||
branches: ["main"] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build Eleventy site | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: | | ||
docker run \ | ||
npm install \ | ||
npm run eleventy | ||
- name: Rsync Deployments Action | ||
# You may pin to the exact commit or the version. | ||
# uses: Burnett01/rsync-deployments@2651e3eecb4ea772cbe952695d04952e92027b4f | ||
uses: Burnett01/[email protected] | ||
with: | ||
# The switches | ||
switches: -r --delete-after | ||
# The local path | ||
path: _site/ | ||
# The remote path | ||
remote_path: ~/www/dev.ulises.us/ | ||
# The remote host | ||
remote_host: ulises.us | ||
# The remote user | ||
remote_user: ulisesus | ||
# The remote key | ||
remote_key: ${{ secrets.GREENGEEKS_KEY }} |