2024-08-16 06:15:53 +00:00
|
|
|
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
|
2024-08-28 17:03:43 +00:00
|
|
|
echo "VITE_REPORTING_NPUB=${{ vars.VITE_REPORTING_NPUB }}" >> .env
|
2024-09-02 08:43:39 +00:00
|
|
|
echo "VITE_FALLBACK_MOD_IMAGE=${{ vars.VITE_FALLBACK_MOD_IMAGE }}" >> .env
|
|
|
|
echo "VITE_FALLBACK_GAME_IMAGE=${{ vars.VITE_FALLBACK_GAME_IMAGE }}" >> .env
|
2024-08-16 06:15:53 +00:00
|
|
|
cat .env
|
|
|
|
|
|
|
|
- name: Create Build
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- name: Release Build
|
|
|
|
run: |
|
|
|
|
npm -g install cloudron-surfer
|
2024-08-16 12:48:13 +00:00
|
|
|
surfer config --token ${{ secrets.PRODUCTION_CLOUDRON_SURFER_TOKEN }} --server degmods.com
|
2024-08-16 06:15:53 +00:00
|
|
|
surfer put dist/* / --all -d
|
2024-08-28 17:03:43 +00:00
|
|
|
surfer put dist/.well-known / --all
|