parent
173f9d19fe
commit
96d4f438a0
32
.gitea/workflows/release-production.yaml
Normal file
32
.gitea/workflows/release-production.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
name: Release to Staging
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build_and_release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: build client folder
|
||||
run: |
|
||||
cd client
|
||||
npm ci --omit=dev
|
||||
npm run build
|
||||
|
||||
- name: Release Build
|
||||
run: |
|
||||
npm -g install cloudron-surfer
|
||||
surfer config --token ${{ secrets.PRODUCTION_CLOUDRON_SURFER_TOKEN }} --server 21120.ft.hn
|
||||
surfer put client/dist/* /demo -d
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user