24 lines
505 B
YAML
24 lines
505 B
YAML
|
name: publish
|
||
|
run-name: Publishing the website with a surfer
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
jobs:
|
||
|
Build-and-publish:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: actions/setup-node@v4
|
||
|
with:
|
||
|
node-version: 20
|
||
|
|
||
|
- name: Install cloudron surfer from NPM
|
||
|
run: npm -g install cloudron-surfer
|
||
|
|
||
|
- name: Publish
|
||
|
run: |
|
||
|
surfer put --token ${{ secrets.SURFER_TOKEN }} --server cheems.nostrdev.com public/* /
|