Compare commits

...

4 Commits

Author SHA1 Message Date
Y
10759f6882 Merge pull request 'Add workflows from staging' (#82) from staging into main
All checks were successful
Release to Production / build_and_release (push) Successful in 1m8s
Reviewed-on: https://git.sigit.io/sig/it/pulls/82
Reviewed-by: Leonardo Davinci <m@noreply.git.sigit.io>
2024-05-27 13:55:48 +00:00
Y
280288b123 Merge pull request 'fix(CI): fixed secret' (#81) from workflow-fix into staging
All checks were successful
Release to Staging / build_and_release (push) Successful in 1m5s
Reviewed-on: https://git.sigit.io/sig/it/pulls/81
2024-05-27 12:37:04 +00:00
Yury
3e360aab15 fix(CI): fixed secret 2024-05-27 15:29:44 +03:00
Yury
d840ef7271 chore(CI): configured Staging and Production workflows
Some checks failed
Release to Staging / build_and_release (push) Failing after 1m3s
2024-05-27 15:17:04 +03:00
2 changed files with 33 additions and 1 deletions

View File

@ -1,4 +1,4 @@
name: Release name: Release to Production
on: on:
push: push:
branches: branches:

View 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.STAGING_CLOUDRON_SURFER_TOKEN }} --server staging.sigit.io dist/* /