Skip to content

Instantly share code, notes, and snippets.

@35d
Last active November 27, 2019 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 35d/fc97fdeb6a197d3e40291e03f11a5ed2 to your computer and use it in GitHub Desktop.
Save 35d/fc97fdeb6a197d3e40291e03f11a5ed2 to your computer and use it in GitHub Desktop.
Vue.js のプロジェクトをビルドして FTP サーバー経由で成果物をデプロイする GitHub Actions
name: Deploy via git-ftp
on: push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: npm i && npm run build
run: cd htdocs && npm i && npm run build
- name: git-ftp push
uses: SamKirkland/FTP-Deploy-Action@2.0.0
env:
FTP_SERVER: [ServerName]
FTP_USERNAME: ${{ secrets.FTP_USER }}
FTP_PASSWORD: ${{ secrets.FTP_PWD }}
LOCAL_DIR: dist
REMOTE_DIR: [DirPath]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment