The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add env-based baseUrl config and split CI build jobs

aria e550d340 a79f026e

+32 -4
+1
.env
··· 1 + BASE_URL="trans-info.aria.coffee"
+1
.env.wisp
··· 1 + BASE_URL="trans-info.wisp.place"
+24 -3
.github/workflows/deploy.yml
··· 15 15 cancel-in-progress: false 16 16 17 17 jobs: 18 - build-and-deploy-to-wisp: 18 + build: 19 19 runs-on: ubuntu-22.04 20 20 steps: 21 21 - uses: actions/checkout@v4 ··· 35 35 uses: actions/upload-pages-artifact@v3 36 36 with: 37 37 path: public 38 + 39 + build-and-deploy-to-wisp: 40 + runs-on: ubuntu-22.04 41 + steps: 42 + - uses: actions/checkout@v4 43 + with: 44 + fetch-depth: 0 45 + - uses: actions/setup-node@v4 46 + with: 47 + node-version: 22 48 + - name: Install Dependencies 49 + run: npm ci 50 + - run: | 51 + mv .env .env.gh 52 + - run: | 53 + mv .env.wisp .env 54 + - uses: typst-community/setup-typst@v4 55 + - name: Build preview EUn paper 56 + run: typst compile -f pdf content/ASSETS/typst/EUn-Paper/main.typ content/ASSETS/PDFs/eun-paper-latest-preview.pdf 57 + - name: Build Quartz 58 + run: npx quartz build 38 59 - run: | 39 60 curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli 40 61 - run: | ··· 45 66 --path "./public" \ 46 67 --site "${{ vars.SITE_NAME }}" \ 47 68 --password "${{ secrets.WISP_APP_PASSWORD }}" 48 - 69 + 49 70 deploy: 50 - needs: build-and-deploy-to-wisp 71 + needs: build 51 72 environment: 52 73 name: github-pages 53 74 url: ${{ steps.deployment.outputs.page_url }}
+6 -1
quartz.config.ts
··· 1 1 import { QuartzConfig } from "./quartz/cfg" 2 2 import * as Plugin from "./quartz/plugins" 3 + import dotenv from 'dotenv' 4 + 5 + dotenv.config(); 6 + 7 + const baseURL = process.env.BASE_URL; 3 8 4 9 /** 5 10 * Quartz 4 Configuration ··· 14 19 enablePopovers: true, 15 20 analytics: null, 16 21 locale: "en-US", 17 - baseUrl: "trans-info.aria.coffee", 22 + baseUrl: baseURL, 18 23 ignorePatterns: ["private", "templates", ".obsidian"], 19 24 defaultDateType: "modified", 20 25 theme: {