implement deploy in deploy action
Some checks failed
deploy to prod / Build and deploy site (push) Failing after 11s
Some checks failed
deploy to prod / Build and deploy site (push) Failing after 11s
This commit is contained in:
parent
69eddf6839
commit
2a1f6b6abb
2 changed files with 14 additions and 6 deletions
|
@ -8,9 +8,17 @@ jobs:
|
|||
name: Build and deploy site
|
||||
runs-on: debian-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: ls -l
|
||||
- run: npm ci
|
||||
- run: npm run docs:build
|
||||
- run: echo "implement deploy"
|
||||
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: show what we get
|
||||
run: ls -l
|
||||
- name: npm ci
|
||||
run: npm ci
|
||||
- name: vitepress build
|
||||
run: npm run docs:build
|
||||
- name: add private key to ssh agent
|
||||
uses: https://git.distrilab.fr/NixiN/ssh-agent-action
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
|
||||
- name: do deploy
|
||||
run: pushd .vitepress/dist/ ; echo "put -r *" | sftp -o StrictHostKeyChecking=no -b - -N ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_TARGET }} ; popd
|
||||
|
|
BIN
.github/workflows/.deploy.yml.swp
vendored
BIN
.github/workflows/.deploy.yml.swp
vendored
Binary file not shown.
Loading…
Reference in a new issue