Compare commits
11 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
a1e1c36b02 | 2 months ago |
|
|
106a06e03b | 2 months ago |
|
|
0ab72e43eb | 2 months ago |
|
|
8fed1a6b9d | 2 months ago |
|
|
15d30b0154 | 3 months ago |
|
|
007815504f | 3 months ago |
|
|
da39f9a913 | 4 months ago |
|
|
3089189b4b | 4 months ago |
|
|
0adfc17857 | 4 months ago |
|
|
17a126527f | 4 months ago |
|
|
4aef373dea | 4 months ago |
@ -0,0 +1,57 @@
|
|||||||
|
# Build & deploy
|
||||||
|
name: 🚀 Deploy GHH
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: 🎉 Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 🚚 Get latest code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Use Node.js 20
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: "npm"
|
||||||
|
|
||||||
|
- name: 🔨 Build Project
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run build --if-present
|
||||||
|
|
||||||
|
- name: Upload build artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: fe-build
|
||||||
|
path: |
|
||||||
|
dist
|
||||||
|
build
|
||||||
|
out
|
||||||
|
if-no-files-found: ignore
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Download build artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: fe-build
|
||||||
|
path: ./build-output
|
||||||
|
|
||||||
|
- name: 📂 Sync files
|
||||||
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
||||||
|
with:
|
||||||
|
server: ${{ secrets.GHH_SERVER }}
|
||||||
|
username: ${{ secrets.GHH_USER }}
|
||||||
|
password: ${{ secrets.GHH_PASSWORD }}
|
||||||
|
port: ${{ secrets.GHH_PORT }}
|
||||||
|
local-dir: ./build-output
|
||||||
|
server-dir: ${{ secrets.GHH_PATH }}
|
||||||
|
# dangerous-clean-slate: true # deletes remote files before upload
|
||||||
Loading…
Reference in New Issue