actions: version bumps (fixes #9) (#10) #41
This file contains hidden or 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
| name: Send Gio Data | |
| on: | |
| push: | |
| #workflow_dispatch: | |
| jobs: | |
| Send: | |
| name: Send Gio Data | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: sshagent | |
| uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| - name: deploy | |
| run: | | |
| branch="${GITHUB_REF#refs/heads/}" | |
| echo "The branched that was pushed is $branch" | |
| mkdir -p ~/.ssh | |
| chmod 700 ~/.ssh | |
| echo "maps.media.mit.edu ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFqXBJPFe+pH3L57o1ildAxHssG4lpkloTcw3Wbs64c7bL8M6hR0rre4ufpCKboVLn4trJqbKOPWtFgBJHsgqXA=" > ~/.ssh/known_hosts | |
| touch data.txt | |
| scp data.txt [email protected]:/root/map/data/ |