feat: pipeline

This commit is contained in:
b 2025-03-17 21:48:03 +00:00
parent 97d8efdacd
commit 7425218c20
4 changed files with 106 additions and 0 deletions

@ -0,0 +1,31 @@
name: Open PR on Staging
on:
pull_request:
types: [opened, edited, synchronize]
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: Create .env File
run: echo "GATSBY_TELEMETRY_DISABLED=${{ vars.GATSBY_TELEMETRY_DISABLED }}" > .env
- name: Install Dependencies
run: npm ci --omit=dev
- name: Clean Gatsby cache
run: npm run clean
- name: Create Build
run: npm run build

@ -0,0 +1,37 @@
name: Release to Staging
on:
push:
branches:
- main
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: Create .env File
run: echo "GATSBY_TELEMETRY_DISABLED=${{ vars.GATSBY_TELEMETRY_DISABLED }}" > .env
- name: Install Dependencies
run: npm ci --omit=dev
- name: Clean Gatsby cache
run: npm run clean
- name: Create Build
run: npm run build
- name: Release Build
run: |
npm -g install cloudron-surfer
surfer config --token ${{ secrets.PRODUCTION_CLOUDRON_SURFER_TOKEN }} --server cs-web.nostrdev.com
surfer put public/* / --all -d
surfer put public/.well-known / --all

@ -0,0 +1,37 @@
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: Create .env File
run: echo "GATSBY_TELEMETRY_DISABLED=${{ vars.GATSBY_TELEMETRY_DISABLED }}" > .env
- name: Install Dependencies
run: npm ci --omit=dev
- name: Clean Gatsby cache
run: npm run clean
- name: Create Build
run: npm run build
- name: Release Build
run: |
npm -g install cloudron-surfer
surfer config --token ${{ secrets.STAGING_CLOUDRON_SURFER_TOKEN }} --server cs-web.nostrdev.com
surfer put public/* / --all -d
surfer put public/.well-known / --all

1
index.html Normal file

@ -0,0 +1 @@
hello (wine) world