-
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.
- Loading branch information
Showing
26 changed files
with
531 additions
and
558 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,35 @@ | ||
# .github/workflows/release.yml | ||
name: Release | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
if: github.event.pull_request.merged | ||
steps: | ||
- name: Get Next Release | ||
id: tag | ||
uses: K-Phoen/semver-release-action@master | ||
with: | ||
release_strategy: none | ||
release_branch: main | ||
tag_format: "%major%.%minor%.%patch%" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: echo 'Creating new release for ' ${{ steps.tag.outputs.tag }} | ||
- name: Create Release | ||
if: ${{ steps.tag.outputs.tag }} | ||
uses: ncipollo/release-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
name: ${{ steps.tag.outputs.tag }} | ||
tag: ${{ steps.tag.outputs.tag }} | ||
commit: ${{ github.sha }} | ||
generateReleaseNotes: true | ||
makeLatest: true | ||
|
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,4 @@ | ||
1.0.0 2024-10-08 | ||
-------------------------------------------------- | ||
|
||
- Initial release. |
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,8 @@ | ||
import {NextResponse} from "next/server" | ||
import {getLegacyBookPaths} from "@lib/utils/getLegacyBookPaths" | ||
|
||
export const revalidate = 86400 | ||
|
||
export const GET = async () => { | ||
return NextResponse.json(await getLegacyBookPaths()) | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
import {notFound, redirect} from "next/navigation" | ||
import {getLegacyBookPaths} from "@lib/utils/getLegacyBookPaths" | ||
|
||
export const revalidate = false | ||
export const dynamic = "force-static" | ||
export const dynamicParams = false | ||
|
||
const LegacyBookPage = async ({params}: {params: {id: string}}) => { | ||
const legacyPaths = await getLegacyBookPaths() | ||
const legacyBook = legacyPaths.find(book => book.id === parseInt(params.id)) | ||
if (legacyBook) redirect(legacyBook.path + "/desk-examination-copy-requests") | ||
|
||
notFound() | ||
} | ||
|
||
export const generateStaticParams = async (): Promise<Array<{id: string}>> => { | ||
if (process.env.VERCEL_ENV === "preview") return [] | ||
const params = await getLegacyBookPaths() | ||
return params.map(item => ({id: item.id.toString()})) | ||
} | ||
|
||
export default LegacyBookPage |
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,22 @@ | ||
import {notFound, redirect} from "next/navigation" | ||
import {getLegacyBookPaths} from "@lib/utils/getLegacyBookPaths" | ||
|
||
export const revalidate = false | ||
export const dynamic = "force-static" | ||
export const dynamicParams = false | ||
|
||
const LegacyBookPage = async ({params}: {params: {id: string}}) => { | ||
const legacyPaths = await getLegacyBookPaths() | ||
const legacyBook = legacyPaths.find(book => book.id === parseInt(params.id)) | ||
if (legacyBook) redirect(legacyBook.path + "/excerpts") | ||
|
||
notFound() | ||
} | ||
|
||
export const generateStaticParams = async (): Promise<Array<{id: string}>> => { | ||
if (process.env.VERCEL_ENV === "preview") return [] | ||
const params = await getLegacyBookPaths() | ||
return params.map(item => ({id: item.id.toString()})) | ||
} | ||
|
||
export default LegacyBookPage |
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,22 @@ | ||
import {notFound, redirect} from "next/navigation" | ||
import {getLegacyBookPaths} from "@lib/utils/getLegacyBookPaths" | ||
|
||
export const revalidate = false | ||
export const dynamic = "force-static" | ||
export const dynamicParams = false | ||
|
||
const LegacyBookPage = async ({params}: {params: {id: string}}) => { | ||
const legacyPaths = await getLegacyBookPaths() | ||
const legacyBook = legacyPaths.find(book => book.id === parseInt(params.id)) | ||
if (legacyBook) redirect(legacyBook.path) | ||
|
||
notFound() | ||
} | ||
|
||
export const generateStaticParams = async (): Promise<Array<{id: string}>> => { | ||
if (process.env.VERCEL_ENV === "preview") return [] | ||
const params = await getLegacyBookPaths() | ||
return params.map(item => ({id: item.id.toString()})) | ||
} | ||
|
||
export default LegacyBookPage |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.