-
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.
Merge pull request #3 from AVAnnotate/lwj/alternate-players
Alternate players
- Loading branch information
Showing
2 changed files
with
31 additions
and
10 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 |
---|---|---|
|
@@ -21,36 +21,57 @@ jobs: | |
- name: Checkout project repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Read in the project file | ||
id: project | ||
uses: antifree/[email protected] | ||
with: | ||
filename: ./data/project.json | ||
prefix: project | ||
|
||
- name: Checkout project-client | ||
if: ${{ env.project_project_media_player == 'avannotate' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: AVAnnotate/project-client | ||
path: "./client" | ||
ref: ${{vars.PROJECT_CLIENT_BRANCH || 'main'}} | ||
|
||
- name: Checkout aviary-client | ||
if: ${{ env.project_project_media_player == 'aviary' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: AVAnnotate/avaiary-client | ||
path: "./client" | ||
ref: ${{vars.PROJECT_CLIENT_BRANCH || 'main'}} | ||
|
||
- name: Checkout universal-client | ||
if: ${{ env.project_project_media_player == 'universal' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: AVAnnotate/universal-client | ||
path: "./client" | ||
ref: ${{vars.PROJECT_CLIENT_BRANCH || 'main'}} | ||
|
||
- name: npm install | ||
working-directory: "./client" | ||
run: npm install | ||
|
||
- name: Ensure a content directory | ||
if: ${{ env.project_project_media_player == 'avannotate' }} | ||
run: mkdir -p "./client/src/content" | ||
|
||
- name: Copy data to contebnt directory | ||
if: ${{ env.project_project_media_player == 'avannotate' }} | ||
run: cp -r ./data/* ./client/src/content | ||
|
||
- name: Make a project directory if it does not exist | ||
if: ${{ env.project_project_media_player == 'avannotate' }} | ||
run: mkdir -p "./client/src/content/project" | ||
|
||
- name: Move project.json file to project directory | ||
if: ${{ env.project_project_media_player == 'avannotate' }} | ||
run: mv ./client/src/content/project.json ./client/src/content/project/project.json | ||
|
||
- name: Read in the project file | ||
id: project | ||
uses: antifree/[email protected] | ||
with: | ||
filename: ./data/project.json | ||
prefix: project | ||
|
||
# Only publish when directed | ||
- name: Setup Pages | ||
if: ${{ env.project_publish_publish_pages_app == 'true' }} | ||
|
@@ -60,9 +81,9 @@ jobs: | |
- name: Make a manifests directory if it does not exist | ||
run: mkdir -p "./client/src/content/manifests" | ||
|
||
# - name: Generate manifest | ||
# if: ${{ env.project_publish_publish_pages_app == 'true' }} | ||
# run: npx tsx ./client/generate-iiif-3-manifests.ts -d './data' -u "https://${{ github.repository_owner }}.github.io/${{ env.project_project_slug}}" -s 'false' | ||
- name: Generate manifest | ||
if: ${{ env.project_publish_publish_pages_app == 'true' }} | ||
run: npx tsx ./client/generate-iiif-3-manifests.ts -d './data' -u "https://${{ github.repository_owner }}.github.io/${{ env.project_project_slug}}" -s 'false' | ||
|
||
- name: Build Astro Client | ||
uses: withastro/action@v2 | ||
|
Empty file.