forked from OpenLineage/OpenLineage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pawel Leszczynski <[email protected]>
- Loading branch information
1 parent
0bcdf5f
commit f30ede7
Showing
7 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build & Deploy spec to Github Pages | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
branches: | ||
#- docs/versionable-docs # testing phase only | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
site-deploy: | ||
name: Build and Publish To openlineage-site repo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: 'source' | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: 'pawel-big-lebowski/openlineage-site' | ||
path: 'target' | ||
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: "npm" | ||
cache-dependency-path: source/website/package-lock.json | ||
- name: Install dependencies | ||
run: | | ||
cd target | ||
yarn install --frozen-lockfile | ||
- name: Generate new version | ||
run: | | ||
cd source | ||
LATEST_VERSION=$(git tag --sort=taggerdate | tail -1) | ||
echo latest version is $LATEST_VERSION | ||
echo "LATEST_VERSION=${LATEST_VERSION}" >> "$GITHUB_ENV" | ||
cd ../target | ||
yarn run docusaurus docs:version $LATEST_VERSION | ||
- name: Push target repo | ||
run: | | ||
cd target | ||
git config user.name "GitHub Action Website Snapshot" | ||
git config user.email "<>" | ||
git add . | ||
if ! git diff-index --quiet HEAD; then | ||
git commit -m "Generating new version $LATEST_VERSION" | ||
git push | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import DocSidebar from '@theme-original/DocSidebar'; | ||
import DocsVersionDropdownNavbarItem from '@theme-original/NavbarItem/DocsVersionDropdownNavbarItem'; | ||
|
||
export default function DocSidebarWrapper(props) { | ||
return ( | ||
<> | ||
<div className="custom-sidebarVersion"> | ||
<p><u><b>Version:</b></u> <DocsVersionDropdownNavbarItem dropdownItemsBefore={[]} dropdownItemsAfter={[]} /></p> | ||
</div> | ||
<hr /> | ||
<DocSidebar {...props} /> | ||
</> | ||
); | ||
} |