Skip to content

Merge pull request #56 from xanthipe/feat/staging-server #1

Merge pull request #56 from xanthipe/feat/staging-server

Merge pull request #56 from xanthipe/feat/staging-server #1

Workflow file for this run

name: Deploy to staging server
on:
push:
branches: ["develop"]
permissions:
contents: read
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "https://www.pencethren.org/~wutan/"
env:
JEKYLL_ENV: staging
- name: Deploy to server
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: "./_site/*"
target: public_html
overwrite: true