Files
website/.gitea/workflows/build-push-beta.yml
T
janishutz 4d7961f1c1
Build and upload website update to beta site / build-and-upload (push) Successful in 11s
Fix directory path
2026-04-03 16:16:13 +02:00

34 lines
958 B
YAML

on:
- push
- workflow_dispatch
name: Build and upload website update to beta 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/
dry-run: true
server-dir: /home4/janishut/domains/beta.janishutz.com/public_html/