Merge pull request 'chore: add production release workflow' (#5) from staging into master
All checks were successful
Release to Staging / build_and_release (push) Successful in 41s
All checks were successful
Release to Staging / build_and_release (push) Successful in 41s
Reviewed-on: #5
This commit is contained in:
commit
24203884fb
36
.gitea/workflows/release-production.yaml
Normal file
36
.gitea/workflows/release-production.yaml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
name: Release to Staging
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
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: Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Create .env File
|
||||||
|
run: |
|
||||||
|
echo "VITE_APP_RELAY=${{ vars.VITE_APP_RELAY }}" >> .env
|
||||||
|
echo "VITE_ADMIN_NPUBS=${{ vars.VITE_ADMIN_NPUBS }}" >> .env
|
||||||
|
cat .env
|
||||||
|
|
||||||
|
- name: Create Build
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Release Build
|
||||||
|
run: |
|
||||||
|
npm -g install cloudron-surfer
|
||||||
|
surfer config --token ${{ secrets.PRODUCTION_CLOUDRON_SURFER_TOKEN }} --server www.degmods.com
|
||||||
|
surfer put dist/* / --all -d
|
@ -2,7 +2,7 @@ name: Release to Staging
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- staging
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_release:
|
build_and_release:
|
||||||
|
Loading…
Reference in New Issue
Block a user