Created
April 7, 2022 23:32
-
-
Save Sigmanificient/cd9913e5d3e76ec8d6bcd8454a19bf26 to your computer and use it in GitHub Desktop.
Deploy a vue app from CI/CD
This file contains hidden or 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 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