Merge pull request #165 from nyu-dh/staging #62
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: prod deploy | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- 'lib/**' | |
- 'README.md' | |
- '.github/workflows/test*.yml' | |
jobs: | |
prod-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# setup | |
- uses: actions/checkout@v3 | |
- name: setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
# test html | |
- name: test html | |
run: bundle exec rake site:test | |
# build site | |
- name: build site | |
run: bundle exec jekyll build | |
# deploy via ftp | |
- 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/ |