Fix github action #24
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: Tsukuba deploy | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'Generate static files' | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1.0' | |
bundler-cache: false | |
- run: bundle install | |
- run: bundle exec jekyll build --config _config.tsukuba.yml | |
- name: 'SCP upload for http' | |
uses: nogsantos/scp-deploy@master | |
with: | |
src: ./_site/* | |
host: ${{ secrets.TSUKUBA_HOST }} | |
remote: ${{ secrets.TSUKUBA_PATH1 }} | |
port: ${{ secrets.TSUKUBA_PORT }} | |
user: ${{ secrets.TSUKUBA_USERNAME }} | |
key: ${{ secrets.TSUKUBA_KEY }} | |
- name: 'SCP upload for https' | |
uses: nogsantos/scp-deploy@master | |
with: | |
src: ./_site/* | |
host: ${{ secrets.TSUKUBA_HOST }} | |
remote: ${{ secrets.TSUKUBA_PATH2 }} | |
port: ${{ secrets.TSUKUBA_PORT }} | |
user: ${{ secrets.TSUKUBA_USERNAME }} | |
key: ${{ secrets.TSUKUBA_KEY }} | |