forked from SOAR-PKU/lab-sftp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Origin commit zhou-yuhan/mini-SFTP@50030c2
- Loading branch information
1 parent
aba0d37
commit 2307fb3
Showing
45 changed files
with
9,165 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.vscode/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.