-
Notifications
You must be signed in to change notification settings - Fork 16
36 lines (32 loc) · 1.04 KB
/
tsukuba.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Tsukuba deploy
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Generate static files'
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1.0'
bundler: 'latest'
bundler-cache: true
- 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 }}