2024-06-05 14:03:48 +00:00
|
|
|
name: publish
|
|
|
|
run-name: Publishing the website with a surfer
|
2024-06-05 14:05:50 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-06-05 14:03:48 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
Build-and-publish:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-06-05 14:20:44 +00:00
|
|
|
npm ci --legacy-peer-deps
|
2024-06-05 14:03:48 +00:00
|
|
|
npm -g install cloudron-surfer
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
- name: Publish
|
|
|
|
run: |
|
|
|
|
surfer put --token ${{ secrets.SURFER_TOKEN }} --server website.datacontroller.io public/* /
|