mise à jour de l'index.md, retouches mineures #29
This file contains 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: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-to-prod: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
ref: 'main' | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: ${{ secrets.SSH_HOST }} | |
- name: Push remote | |
run: | | |
git config user.name "davvalent" | |
git config user.email "[email protected]" | |
git remote add prod ${{ secrets.SSH_TARGET }} | |
git add . | |
git commit --allow-empty -am "deploy from Github CI/CD" | |
git push -f prod main |