Skip to content

local media

local media #106

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@v4
- 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/
- name: gh-deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site/