This commit is contained in:
@@ -1,25 +1,19 @@
|
|||||||
name: Deploy to Server
|
name: Test Runner
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [ main ]
|
||||||
- main # Déclenche sur des pushs sur la branche principale (ou autre branche que vous préférez)
|
workflow_dispatch: # Permet de lancer manuellement
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
test:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Hello World
|
||||||
uses: actions/checkout@v2
|
run: echo "Hello from Gitea Actions!"
|
||||||
|
|
||||||
- name: Setup SSH
|
- name: System Info
|
||||||
uses: webfactory/ssh-agent@v0.5.3
|
run: |
|
||||||
with:
|
echo "Runner info:"
|
||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} # Vous stockez la clé privée SSH dans les secrets de Gitea
|
whoami
|
||||||
|
pwd
|
||||||
- name: Copy files to server
|
uname -a
|
||||||
run: |
|
|
||||||
scp -r ./ manoel@malaurytoussi.cm:/var/www/malaurytoussi.cm
|
|
||||||
env:
|
|
||||||
SSH_AUTH_SOCK: ${{ secrets.SSH_AUTH_SOCK }}
|
|
||||||
Reference in New Issue
Block a user