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

35 lines
691 B
YAML
Raw Normal View History

2024-03-01 10:19:19 +00:00
name: Release
on:
push:
branches:
- main
jobs:
build_and_release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/fermium]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm ci
2024-03-01 10:25:32 +00:00
- name: Create Build
2024-03-01 10:19:19 +00:00
run: npm run build
2024-03-01 10:25:32 +00:00
- name: Install Cloudron Surfer
run: npm install cloudron-surfer
2024-03-01 10:19:19 +00:00
- name: Release Build
2024-03-01 10:25:32 +00:00
run: npx surfer put --token ${{ secrets.CLOUDRON_SURFER_TOKEN }} --server app.sigit.io dist/*