mirror of
https://github.com/mfocko/blog.git
synced 2024-11-21 20:43:48 +01:00
ci: drop different hosts
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
14eb8b9f7d
commit
f6d2519ef9
4 changed files with 8 additions and 14 deletions
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/test-deploy.yml
vendored
2
.github/workflows/test-deploy.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
13
makefile
13
makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue