Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrozhang authored Apr 17, 2024
1 parent 11deadd commit 6cab2e2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Add SSH key
uses: shimataro/ssh-key-action@v2.7.0
with:
key: ${{ secrets.SOURCEFORGE_PRIVATE_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: 8.上传

- name: Upload file to SourceForge
run: |
dd if=/dev/zero of=myfile bs=1M count=10
mkdir -p ~/.ssh/
echo "${{ secrets.SOURCEFORGE_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H frs.sourceforge.net >> ~/.ssh/known_hosts
rsync -r myfile pedroz@frs.sourceforge.net:/home/frs/project/pedroz/hyperos/$(TZ='Asia/Shanghai' date +"%Y-%m-%d")
env:
SOURCEFORGE_PRIVATE_KEY: ${{ secrets.SOURCEFORGE_PRIVATE_KEY }}

0 comments on commit 6cab2e2

Please sign in to comment.