sigit.io/.gitea/workflows/release-production.yaml

35 lines
786 B
YAML
Raw Normal View History

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