Skip to content

first commit

first commit #7

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/23au/*
# mv ~/public.zip /cse/web/courses/cse493g1/23au/public.zip
# cd /cse/web/courses/cse493g1/23au/
# unzip public.zip
# rm public.zip
# cp -f -r ../23sp/resources/ .