Last active
November 27, 2019 16:45
-
-
Save 35d/fc97fdeb6a197d3e40291e03f11a5ed2 to your computer and use it in GitHub Desktop.
Vue.js のプロジェクトをビルドして FTP サーバー経由で成果物をデプロイする GitHub Actions
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
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