Skip to content

Update publications.json #25

Update publications.json

Update publications.json #25

Workflow file for this run

name: Build and Zip
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js 19.x
uses: actions/setup-node@v4
with:
node-version: '19'
- name: Install dependencies
run: yarn install
- name: Build project
run: yarn build
- name: Zip public directory
run: |
cd public
zip -r ../public.zip *
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: public.zip
path: public.zip
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: public.zip
path: ./
- name: List directory contents
run: |
ls -la
pwd
- name: Transfer public.zip to server
uses: appleboy/scp-action@master
with:
host: bicycle.cs.washington.edu
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
source: "public.zip"
target: "~/"
- name: Deploy to server
uses: appleboy/ssh-action@master
with:
host: bicycle.cs.washington.edu
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
rm -rf /cse/web/research/raivn/*
mv ~/public.zip /cse/web/research/raivn/public.zip
cd /cse/web/research/raivn
unzip public.zip
rm public.zip