Created
May 31, 2021 17:33
-
-
Save icek/7efc638e5eaa6574d24a55f2b36d66e7 to your computer and use it in GitHub Desktop.
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: 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