mirror of
https://github.com/jwetzell/itsfiveoclockwhere.git
synced 2026-08-06 07:43:41 +00:00
35 lines
904 B
YAML
35 lines
904 B
YAML
name: publish
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
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 install
|
|
|
|
- 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/itsfiveoclockwhere/browser/
|
|
port: 21
|
|
protocol: ftps
|