Read more about getting this working here.
Created
October 4, 2022 13:24
-
-
Save narath/1d172c5103ae0a856d759cb040044896 to your computer and use it in GitHub Desktop.
Github action to deploy Jekyll + Tailwindcss with rsync
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: Jekyll site CI | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the site in the jekyll/builder container | |
run: | | |
docker run \ | |
-v $:/srv/jekyll -v $/_site:/srv/jekyll/_site \ | |
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && bundle install && npm install && NODE_ENV=production JEKYLL_ENV=production bundle exec jekyll build --future" | |
- name: rsync deployment | |
uses: burnett01/[email protected] | |
with: | |
switches: -avzr --delete | |
path: _site/ | |
remote_path: ~/${{secrets.REMOTE_HOST }} | |
remote_host: ${{ secrets.REMOTE_HOST \}\} | |
remote_user: ${{ secrets.REMOTE_USER }} | |
remote_key: ${{ secrets.REMOTE_KEY }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment