Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/693c70a4-9498-8011-87ee-efb5576cc53d
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== If you want true CI/CD from GitHub to VPS (no manual rsync), you can create: ==== /.github/workflows/deploy.yml in your repo: <syntaxhighlight lang="yaml">name: Deploy WSI website to VPS on: push: branches: * main # adjust if needed paths: * "src/**" * "docs/**" * "tailwind.config.js" * "postcss.config.js" * "build-meta.sh" * "package.json" * "package-lock.json" jobs: build-and-deploy: runs-on: ubuntu-latest steps: * name: Checkout repo uses: actions/checkout@v4 * name: Setup Node uses: actions/setup-node@v4 with: node-version: "22" # or the version you actually use * name: Install dependencies run: npm ci * name: Build metadata run: chmod +x ./build-meta.sh && ./build-meta.sh * name: Build static site run: npm run build * name: Deploy via rsync to VPS uses: burnett01/rsync-deployments@v7.1 with: switches: -avz --delete path: site/ remote_path: /home/cesadmin/projects/wsi-website-prod/site/ remote_host: ${{ secrets.WSI_VPS_HOST }} remote_user: ${{ secrets.WSI_VPS_USER }} remote_key: ${{ secrets.WSI_VPS_SSH_KEY }} </syntaxhighlight> Then in your repo GitHub β Settings β Secrets and variables β Actions, define: * WSI_VPS_HOST β vmi2744768 or actual IP/FQDN * WSI_VPS_USER β cesadmin '' WSI_VPS_SSH_KEY β private key for that user (no passphrase or use a separate ''_PASSPHRASE secret) After that: * Every git push to main β GitHub builds β rsyncs site/ to VPS β Caddy instantly serves updated version.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)