chore(CI): configured Staging and Production workflows
Some checks failed
Release to Staging / build_and_release (push) Failing after 1m3s
Some checks failed
Release to Staging / build_and_release (push) Failing after 1m3s
This commit is contained in:
parent
5c286c6b97
commit
d840ef7271
@ -1,4 +1,4 @@
|
||||
name: Release
|
||||
name: Release to Production
|
||||
on:
|
||||
push:
|
||||
branches:
|
32
.gitea/workflows/release-staging.yaml
Normal file
32
.gitea/workflows/release-staging.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
name: Release to Staging
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- staging
|
||||
|
||||
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_MOST_POPULAR_RELAYS=${{ vars.VITE_MOST_POPULAR_RELAYS }}" > .env
|
||||
|
||||
- name: Create Build
|
||||
run: npm run build
|
||||
|
||||
- name: Release Build
|
||||
run: |
|
||||
npm -g install cloudron-surfer
|
||||
surfer put --token ${{ secrets.CLOUDRON_SURFER_TOKEN }} --server staging.sigit.io dist/* /
|
Loading…
Reference in New Issue
Block a user