mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-24 07:28:59 +00:00
add publish workflow
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
name: publish
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
build-publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
||||||
|
with:
|
||||||
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: './package-lock.json'
|
||||||
|
|
||||||
|
- name: install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
||||||
|
with:
|
||||||
|
server: ${{secrets.FTP_HOST}}
|
||||||
|
username: ${{secrets.FTP_USERNAME}}
|
||||||
|
password: ${{secrets.FTP_PASSWORD}}
|
||||||
|
local-dir: ./dist/webui/browser/
|
||||||
|
port: 21
|
||||||
|
protocol: ftps
|
||||||
Reference in New Issue
Block a user