[CI] Add more workflows

This commit is contained in:
2026-04-03 16:21:35 +02:00
parent 558453af03
commit e62c42b877
2 changed files with 34 additions and 2 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
on: on:
- push push:
- workflow_dispatch paths:
- 'src/**'
name: Build and upload website update to beta site name: Build and upload website update to beta site
jobs: jobs:
build-upload: build-upload:
+31
View File
@@ -0,0 +1,31 @@
on:
- workflow_dispatch
name: Build and upload website update to main site
jobs:
build-upload:
name: build-and-upload
runs-on: ubuntu-latest
steps:
- name: Pull repo
uses: actions/checkout@v6
with:
ref: main
- name: Sign into gitea registry
uses: actions/docker-login@v3
with:
username: ${{ vars.REGISTRY_USER_USERNAME }}
password: ${{ secrets.REGISTRY_USER_PASSWORD }}
registry: ${{ vars.REGISTRY_BASE_URL }}
- name: Run node build
uses: actions/node-action@main
with:
script: 'build.js'
workdir: /
- name: Push changes to webserver
uses: actions/ftp-deploy@v4.3.6
with:
server: ${{ vars.FTP_URL }}
username: ${{ vars.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: dist/
server-dir: ${{ vars.SERVER_DIR_MAIN }}