Skip to content

Update deploy.yml

Update deploy.yml #62

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy app
on:
push:
branches: [master]
workflow_dispatch:
permissions:
discussions: write
jobs: # push, pull_request
tests:
uses: ./.github/workflows/build.yml
deploy:
needs: [tests]
runs-on: ubuntu-latest
concurrency:
group: Deploy
cancel-in-progress: true
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: files
path: tmp
- name: ssh publish
uses: easingthemes/ssh-deploy@01a39e33483634cbd7ac99020c55b72ca7f098fe
with:
SSH_PRIVATE_KEY: ${{ secrets.ssh_private_key }}
REMOTE_HOST: ${{ secrets.ssh_host }}
REMOTE_USER: ${{ secrets.ssh_user }}
REMOTE_PORT: 22
SOURCE: tmp/
TARGET: ${{ secrets.ssh_target }}
ARGS: -r -l -0 -v --checksum --delete-delay
- name: Update github discussions
uses: ferrybig/giscus-discussions-from-json@400ab94768fec0d69750ecf9098b3239a4848d18
with:
file: tmp/comments.json
token: ${{ secrets.GITHUB_TOKEN }}
topicId: DIC_kwDOHBif1s4CdpTo