File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,26 +3,32 @@ name: Deploy
33on :
44 push :
55 branches :
6- - main
6+ - sveltekit
77
88jobs :
99 deploy :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v2
13- - uses : ruby/setup-ruby@v1
14- with :
15- # ruby-version: 2.7 # Not needed with a .ruby-version file
16- bundler-cache : true # runs 'bundle install' and caches installed gems automatically
17- - run : bundle exec jekyll build
18- - uses : appleboy/scp-action@master
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Node
16+ uses : actions/setup-node@v4
1917 with :
20- host : ${{ secrets.REMOTE_HOST }}
21- username : ${{ secrets.REMOTE_USER }}
22- password : ${{ secrets.REMOTE_PASSWORD }}
23- proxy_host : ${{ secrets.JUMP_HOST }}
24- proxy_username : ${{ secrets.REMOTE_USER }}
25- proxy_password : ${{ secrets.REMOTE_PASSWORD }}
26- source : " _site/*"
27- target : " mitviswww/"
28- strip_components : 1
18+ node-version : 24
19+ cache : ' npm'
20+
21+ - name : Install dependencies
22+ run : npm install
23+
24+ - name : Build
25+ run : npm run build
26+
27+ - name : Deploy
28+ uses : s0/git-publish-subdir-action@develop
29+ env :
30+ REPO : self
31+ BRANCH : csail-build
32+ FOLDER : build
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ MESSAGE : " Build: ({sha}) {msg}"
You can’t perform that action at this time.
0 commit comments