Skip to content

docs: update date

docs: update date #100

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
# Sustainability: Don't trigger build for updated README
paths-ignore:
- '**/README.md'
# needed for gh pages deploy
# permissions:
# contents: write
# jobs run in parallel by default
jobs:
# For demo purposes I also deploy to GitHub pages,
# since it's a bit more complicated (subdirectory path in URL)
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node LTS
uses: actions/setup-node@v3
with:
node-version: '20' # lts
# Create an .env file, this will be used in svelte.config.js
# https://stackoverflow.com/a/63350136,
- name: 'Create env file'
run: |
touch .env
echo PUBLIC_BASE_URL=/ >> .env
# NodeJS
- name: Install and Build 🔧
run: |
npm ci
npm run build
- name: rsync deployments
uses: burnett01/[email protected]
with:
# be careful with --delete option!
switches: -avzr --delete
# TODO: add --delete flag once path is correct
# build path:
path: /dist/
# Something like '/home/sites/site100XXXX5/web/aktuelle-erderhitzung.de/'
remote_path: ${{ secrets.SSH_PATH }}
remote_host: ngcobalt384.manitu.net
remote_user: ${{ secrets.SSH_USER }}
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
# On Manitu -> SSH rsync user must be owner of /aktuelle-erderhitzung.de/ directory