Skip to content

Merge pull request #184 from nyu-dh/staging #95

Merge pull request #184 from nyu-dh/staging

Merge pull request #184 from nyu-dh/staging #95

Workflow file for this run

name: prod deploy
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'lib/**'
- 'README.md'
- '.github/workflows/test*.yml'
jobs:
prod-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup ruby
uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
- name: install gems
run: bundle install
- name: test html
run: bundle exec rake site:test
- name: build site
run: bundle exec jekyll build
- name: ftp deploy to host
uses: SamKirkland/[email protected]
with:
server: ${{secrets.FTP_PROD_SERVER}}
username: ${{secrets.FTP_PROD_USER}}
password: ${{secrets.FTP_PROD_PW}}
protocol: ftps
state-name: ./.ftp-deploy-sync-state.json
local-dir: ./_site/