local media #106
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: | |
- 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/ | |