Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
👷 Fix the rsync step
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Perestoronin committed Jun 8, 2023
1 parent cba8814 commit 6730c45
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ jobs:
- name: 📥 Checkout
uses: actions/checkout@v3

- name: 🖊 Set crate version
run: |
echo 'version = "${{ github.ref_name }}"'
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.toml
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.lock
- name: ⚡️ Rust Cache
uses: Swatinem/rust-cache@v2
with:
Expand Down
31 changes: 17 additions & 14 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:
with:
fetch-depth: 0

- name: 🖊 Set crate version
run: |
echo 'version = "${{ github.ref_name }}"'
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.toml
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.lock
- name: ⚡️ Rust Cache
uses: Swatinem/rust-cache@v2
with:
key: "rust"
cache-on-failure: true

- name: 🖊 Set crate version
run: |
echo 'version = "${{ github.ref_name }}"'
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.toml
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.lock
- name: 📝 Build Changelog
id: changelog
uses: Bullrich/generate-release-changelog@master
Expand Down Expand Up @@ -80,12 +80,15 @@ jobs:
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}

- name: ♻️ Rsync
uses: burnett01/[email protected]
- name: 🔑 Install SSH key
uses: shimataro/ssh-key-action@v2
with:
switches: -avz
path: blitz-tanks.aarch64-unknown-linux-gnu
remote_path: /home/pi/bin
remote_host: mars.fluffy-shark.ts.net
remote_user: pi
remote_key: ${{ secrets.SSH_KEY }}
key: ${{ secrets.SSH_KEY }}
known_hosts: unnecessary
config: |
Host mars
User pi
StrictHostKeyChecking no
- name: ♻️ Rsync
run: rsync -avz blitz-tanks.aarch64-unknown-linux-gnu mars:/home/pi/bin/blitz-tanks

0 comments on commit 6730c45

Please sign in to comment.