Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-yuhan committed Oct 10, 2022
1 parent aba0d37 commit 2307fb3
Show file tree
Hide file tree
Showing 45 changed files with 9,165 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Check and Publish

on:
push:
branches: [master]
pull_request:
branches: [master]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
publish:
name: Publish the lab
runs-on: ubuntu-latest

# Available context: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Remove hidden source code
run: /bin/bash publish/main.sh
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@ssh-deploy-key
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: public
destination-github-username: SOAR-PKU
destination-repository-name: lab-sftp
user-email: zhouyuhan_@outlook.com
commit-message: Origin commit ORIGIN_COMMIT
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode/
build/
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.10)

project(mini-sftp VERSION 1.0)

add_subdirectory(src)

add_executable(client client.c)

target_link_libraries(client sftp)
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

Loading

0 comments on commit 2307fb3

Please sign in to comment.