Skip to content

Commit

Permalink
Merge pull request #3 from AVAnnotate/lwj/alternate-players
Browse files Browse the repository at this point in the history
Alternate players
  • Loading branch information
lwjameson authored Oct 14, 2024
2 parents 6c89dac + b5f6025 commit 7a886c2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand All @@ -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
Expand Down
Empty file added data/vtt/.gitkeep
Empty file.

0 comments on commit 7a886c2

Please sign in to comment.