Skip to content

Commit

Permalink
chore: pass base href in env vars instead of inputs (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laffery authored Nov 8, 2024
1 parent 0d25491 commit e78a5eb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ name: "Build website and document"
env:
versions: ("master" "0.9") # defines what versions of document should be updated
latest_version: "0.9" # defines what version docs/latest links to
base_href: "https://paimon.apache.org/" # website base href

on:
workflow_dispatch:
inputs:
base_href:
description: 'Base href for the website'
type: string
default: 'https://paimon.apache.org/'
required: true
schedule:
- cron: '0 0 * * *' # deploy every day

Expand Down Expand Up @@ -82,7 +77,7 @@ jobs:
# build website
npm config --global set registry https://registry.npmmirror.com/
pnpm install
pnpm run build --base-href="${{ inputs.base_href }}"
pnpm run build --base-href="${{ env.base_href }}"
- name: Move out output
run: |
Expand Down

0 comments on commit e78a5eb

Please sign in to comment.