Skip to content

Commit

Permalink
add git ci for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
olton committed Jan 24, 2025
1 parent a0aca9f commit 158251d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 34 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/deploy-to-keycdn-master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on:
push:
branches:
- master
name: Deploy to KeyCDN
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Get Version
id: get-version
uses: beaconbrigade/[email protected]
with:
path: .

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Push files to Current folder
uses: SamKirkland/[email protected]
with:
server: ftp.keycdn.com
username: metro4
password: ${{ secrets.FTP_PASSWORD_KEYCDN }}
dangerous-clean-slate: true
local-dir: ./lib/
server-dir: current/

- name: Push files to Number folder
uses: SamKirkland/[email protected]
with:
server: ftp.keycdn.com
username: metro4
password: ${{ secrets.FTP_PASSWORD_KEYCDN }}
dangerous-clean-slate: true
local-dir: ./lib/
server-dir: ${{ steps.get-version.outputs.version }}/
31 changes: 0 additions & 31 deletions deploy-dev.js

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@
"build": "npm run clean && cross-env NODE_NO_WARNINGS=1 MODE=production node build.js",
"dev": "npm run clean && cross-env NODE_NO_WARNINGS=1 MODE=development node build.js",
"watch": "npm run clean && cross-env NODE_NO_WARNINGS=1 MODE=development node watch.js",
"dep:prod": "npm run build && node ./deploy.js",
"dep": "npm run dev && node ./deploy-dev.js",
"dep": "npm run build && node ./deploy.js",
"pub": "npm publish --access public",
"test": "easytest --include='__tests__/*.test.js' --skip='gravatar,touch,sidebar,list.html,audio-player'",
"test": "easytest --include='__tests__/*.test.js'",
"check": "npx biome check"
},
"browserslist": ["last 2 versions"],
Expand Down

0 comments on commit 158251d

Please sign in to comment.