mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-20 03:37:47 +00:00
Only set up SSH key on main branch
(cherry picked from commit bee7c9e3c9
)
This commit is contained in:
parent
303def4ee3
commit
9820f86b5a
1 changed files with 1 additions and 0 deletions
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
@ -48,6 +48,7 @@ jobs:
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
run: cargo clippy --features visual_data,game_install
|
run: cargo clippy --features visual_data,game_install
|
||||||
- name: Set up SSH key
|
- name: Set up SSH key
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
|
|
Loading…
Add table
Reference in a new issue