Skip to content

Typo

Typo #80

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@v2
- name: Zip public directory
run: |
zip -r public.zip ./*
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: public.zip
path: public.zip
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v2
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/courses/cse493g1/24wi/*
mv ~/public.zip /cse/web/courses/cse493g1/24wi/public.zip
cd /cse/web/courses/cse493g1/24wi/
unzip public.zip
rm public.zip
cp -f -r ../23sp/resources/ .