delete extra a tag #31
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
# This is a basic workflow to automatically build a Svelte app and deploy it to GitHub Pages | |
name: Deploy to Remote Server | |
on: | |
push: | |
branches: [ master, main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install and Build | |
run: | | |
npm install | |
npm run build | |
- name: Deploy | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SSHHOST }} | |
username: ${{ secrets.SSHUSERNAME }} | |
password: ${{ secrets.SSHPASSWORD }} | |
key: ${{ secrets.SSHKEY }} | |
debug: true | |
script: cd /opt/la-movement-directory-web && source ~/.bashrc && export PATH="/root/.nvm/versions/node/v20.5.1/bin/:$PATH" && git pull && npm install && npm run build && systemctl restart ladirectoryfrontend |