diff --git a/.github/workflows/deploy-main.yml b/.github/workflows/deploy-main.yml index 4f40fbb..dfca2fc 100644 --- a/.github/workflows/deploy-main.yml +++ b/.github/workflows/deploy-main.yml @@ -21,36 +21,57 @@ jobs: - name: Checkout project repository uses: actions/checkout@v4 + - name: Read in the project file + id: project + uses: antifree/json-to-variables@v1.0.1 + 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/json-to-variables@v1.0.1 - 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 diff --git a/data/vtt/.gitkeep b/data/vtt/.gitkeep new file mode 100644 index 0000000..e69de29