Skip to content

Instantly share code, notes, and snippets.

@Sigmanificient
Created April 7, 2022 23:32
Show Gist options
  • Save Sigmanificient/cd9913e5d3e76ec8d6bcd8454a19bf26 to your computer and use it in GitHub Desktop.
Save Sigmanificient/cd9913e5d3e76ec8d6bcd8454a19bf26 to your computer and use it in GitHub Desktop.
Deploy a vue app from CI/CD
name: πŸš€ Deploy website on push
on:
workflow_dispatch:
push:
branches:
- master
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.19.1
- name: πŸ“¦ Install dependencies
run: npm install
- name: πŸ“¦ Compile
run: npm run build
- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.SFTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: dist/
server-dir: ${{ secrets.REMOTE_FOLDER }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment