ci: drop different hosts

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-09-07 20:09:24 +02:00
parent 14eb8b9f7d
commit f6d2519ef9
Signed by: mfocko
GPG key ID: 7C47D46246790496
4 changed files with 8 additions and 14 deletions

View file

@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: URL="https://blog.mfocko.xyz" BASE_URL="/" yarn run build
run: yarn run build
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus

View file

@ -24,4 +24,4 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: URL="https://blog.mfocko.xyz" BASE_URL="/" yarn run build
run: yarn run build

View file

@ -62,8 +62,9 @@ const config = {
title: "mf",
tagline: "blog and additional materials for courses at φ",
url: process.env.URL,
baseUrl: process.env.BASE_URL,
url: "https://blog.mfocko.xyz",
baseUrl: "/",
trailingSlash: true,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",

View file

@ -4,17 +4,10 @@ OUTPUT_DIR=public
dev: assets
URL=http://localhost BASE_URL=/ yarn run start --no-open
# Build the webpage
build-aisa: assets
URL="https://fi.muni.cz" BASE_URL="~xfocko/kb/" yarn run build --out-dir $(OUTPUT_DIR)
build-poincare: assets
URL="https://blog.mfocko.xyz" BASE_URL="/" yarn run build --out-dir $(OUTPUT_DIR)
yarn run build --out-dir $(OUTPUT_DIR)
# Upload the built webpage
deploy-aisa: build-aisa
rsync -avzrlpptv --delete $(OUTPUT_DIR)/ aisa:~/public_html/kb/
deploy-poincare: build-poincare
rsync -avzrlpptv --delete $(OUTPUT_DIR)/ poincare:~/public_html/blog/
@ -30,6 +23,6 @@ regenerate-archives:
sh regenerate-archives.sh
# Deploys
deploy: deploy-aisa deploy-poincare
deploy: deploy-poincare
.PHONY: dev deploy-aisa deploy-poincare assets regenerate-dots regenerate-archives
.PHONY: dev deploy-poincare assets regenerate-dots regenerate-archives