Merge pull request #89 from swissbuechi/fix-links #22
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
# Build and Deploy to FTP | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
FTP-Deploy-Action: | |
name: FTP-Deploy-Action | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 2 | |
- name: Use Node.js 12.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: Build Project | |
run: | | |
npm install | |
npm run build --if-present | |
- name: List output files | |
run: ls | |
- name: FTP-Deploy-Action | |
uses: SamKirkland/[email protected] | |
with: | |
ftp-server: ${{ secrets.FTP_SERVER }} | |
ftp-username: ${{ secrets.FTP_USERNAME }} | |
ftp-password: ${{ secrets.FTP_PASSWORD }} | |
git-ftp-args: --insecure | |
local-dir: dist |