2024-03-01 10:19:19 +00:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-03-01 10:30:00 +00:00
|
|
|
uses: actions/checkout@v3
|
2024-03-01 10:19:19 +00:00
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2024-03-01 10:30:00 +00:00
|
|
|
node-version: 18
|
2024-03-01 10:19:19 +00:00
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
2024-03-01 11:27:33 +00:00
|
|
|
- name: Create .env File
|
2024-03-01 11:33:25 +00:00
|
|
|
run: |
|
|
|
|
echo ${{ vars.VITE_MOST_POPULAR_RELAYS }}
|
|
|
|
echo "VITE_MOST_POPULAR_RELAYS=${{ vars.VITE_MOST_POPULAR_RELAYS }}" > .env
|
2024-03-01 11:27:33 +00:00
|
|
|
|
2024-03-01 10:25:32 +00:00
|
|
|
- name: Create Build
|
2024-03-01 10:19:19 +00:00
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- name: Release Build
|
2024-03-01 10:36:59 +00:00
|
|
|
run: |
|
|
|
|
npm -g install cloudron-surfer
|
2024-03-01 10:39:43 +00:00
|
|
|
surfer put --token ${{ secrets.CLOUDRON_SURFER_TOKEN }} --server app.sigit.io dist/* /
|