Skip to content

Instantly share code, notes, and snippets.

@icek
Created May 31, 2021 17:33
Show Gist options
  • Save icek/7efc638e5eaa6574d24a55f2b36d66e7 to your computer and use it in GitHub Desktop.
Save icek/7efc638e5eaa6574d24a55f2b36d66e7 to your computer and use it in GitHub Desktop.
name: Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "16"
- name: Installation
run: npm ci
- name: Build library
run: npm run build
- name: Upload ftp
uses: sebastianpopp/ftp-action@releases/v2
with:
host: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: "dist"
remoteDir: "www"
options: "--delete --asci"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment