Skip to content

Commit bbb86c8

Browse files
committed
refactor: deploy script for CSAIL MFA
1 parent eb1a28c commit bbb86c8

1 file changed

Lines changed: 23 additions & 17 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,32 @@ name: Deploy
33
on:
44
push:
55
branches:
6-
- main
6+
- sveltekit
77

88
jobs:
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}"

0 commit comments

Comments
 (0)