Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Zdeněk Tomis committed Oct 5, 2023
1 parent ed9f229 commit 46130c7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy

on:
workflow_dispatch:
push:
branches:
- master

jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
- name: Build
working-directory: ./frontend
run: |
npm install
npm run build --production
- name: Upload via FTP
uses: airvzxf/ftp-deployment-action@latest
with:
server: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_LOGIN }}
password: ${{ secrets.FTP_PASSWORD }}
local_dir: ".frontend/dist/"
remote_dir: "./"
delete: "true"

0 comments on commit 46130c7

Please sign in to comment.