ci: publish
This commit is contained in:
parent
fd510b88c4
commit
7faaf4737b
26
.gitea/publish.yml
Normal file
26
.gitea/publish.yml
Normal file
@ -0,0 +1,26 @@
|
||||
name: publish
|
||||
run-name: Publishing the website with a surfer
|
||||
on: [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 dependencies
|
||||
run: |
|
||||
npm ci
|
||||
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/* /
|
Loading…
Reference in New Issue
Block a user