Upgrading Telar

Keep your Telar site up to date with the latest features, bug fixes, and improvements.

Overview

Telar v0.3.4 introduced an automated upgrade system that makes updating your site simple and safe. The upgrade process depends on which version you’re currently running:

  • v0.3.4 or later: Use the automated upgrade workflow (one-click upgrades)
  • v0.2.0 to v0.3.3: Manual setup required first (one-time only)

Automated Upgrades (v0.3.4+)

If your site is already running Telar v0.3.4 or later, upgrading is fully automated.

How It Works

The upgrade system:

  1. Detects your current Telar version from _config.yml
  2. Applies all necessary migrations incrementally (e.g., v0.3.4 → v0.3.5 → v0.3.6)
  3. Updates framework files and configurations
  4. Creates an upgrade branch and issue with detailed summary
  5. Highlights any manual steps you need to complete

Running an Automated Upgrade

Forked repositories only: If you forked your site from another repository, you’ll need to enable issues in your repository settings (SettingsGeneral → check Issues). Sites created using the “Use this template” button already have issues enabled.

  1. Go to your repository on GitHub
  2. Click the Actions tab
  3. Select the “Upgrade Telar” workflow from the left sidebar
  4. Click Run workflow (green button on the right)
  5. Click the green Run workflow button in the dropdown
  6. Wait for the workflow to complete (usually 1-2 minutes)
  7. Review the automatically created upgrade issue
  8. Click the link in the issue to create a pull request
  9. Review changes and merge the pull request to complete the upgrade

Safe and Reversible The upgrade creates an issue and branch, giving you full control. Review the changes via the compare link, create a PR when ready, and merge only after verification.

After Upgrading

  1. Visit your site to verify it’s working correctly
  2. Check the upgrade issue for any manual steps (visible in the “After Merging” section)
  3. If you have custom themes or modifications, test them thoroughly
  4. Close the upgrade issue once everything is working - this marks the upgrade as complete
  5. If you encounter issues, check the GitHub Issues or report a bug

Manual Setup for Earlier Versions

If your site is running v0.2.0 through v0.3.3, you’ll need to add the upgrade workflow files to your repository first. This is a one-time setup—after this, all future upgrades will be automated.

Step 1: Add the Upgrade Workflow File

You need to add two files to enable automated upgrades: the upgrade workflow and the updated build workflow. The upgrade workflow will automatically fetch all necessary scripts when it runs.

Work entirely in the browser without installing anything:

  1. Open the upgrade workflow in Telar:
  2. Create the file in your repository:
    • Go to your repository on GitHub
    • Click Add fileCreate new file
    • Enter the file path: .github/workflows/upgrade.yml
    • Paste the copied contents
    • Scroll down and click Commit changes
    • Add commit message: “Add automated upgrade workflow”
    • Click Commit changes

Method B: Desktop/Local Development

If you have your repository cloned locally:

  1. Download the workflow file from Telar:
    curl -o .github/workflows/upgrade.yml https://raw.githubusercontent.com/UCSB-AMPLab/telar/main/.github/workflows/upgrade.yml
    
  2. Commit and push:
    git add .github/workflows/upgrade.yml
    git commit -m "Add automated upgrade workflow"
    git push
    

That’s it! The workflow automatically downloads the latest upgrade scripts from the Telar repository each time it runs, so you don’t need to copy any Python files manually.

Step 2: Replace the Build Workflow File

If you’re upgrading from v0.2.0 through v0.3.3, you also need to replace your .github/workflows/build.yml file with the latest version. This removes deprecated features (cron schedule and git push step) that are no longer needed in v0.3.4+.

Work entirely in the browser:

  1. Open the build workflow in Telar:
  2. Replace the file in your repository:
    • Go to your repository on GitHub
    • Navigate to .github/workflows/build.yml
    • Click the Edit button (pencil icon)
    • Select all content (Ctrl+A or Cmd+A) and delete
    • Paste the copied contents
    • Scroll down and click Commit changes
    • Add commit message: “Update build workflow to v0.3.4”
    • Click Commit changes

Method B: Desktop/Local Development

If you have your repository cloned locally:

  1. Download the workflow file from Telar:
    curl -o .github/workflows/build.yml https://raw.githubusercontent.com/UCSB-AMPLab/telar/main/.github/workflows/build.yml
    
  2. Commit and push:
    git add .github/workflows/build.yml
    git commit -m "Update build workflow to v0.3.4"
    git push
    

Optional Step: If you skip this step now, the upgrade summary will include instructions to update build.yml manually after your first upgrade. However, doing it now ensures a smoother upgrade experience.

Step 3: Run Your First Automated Upgrade

That’s all the setup needed! Now follow the Automated Upgrades instructions above to upgrade to the latest version.

The workflow will automatically:

  1. Download the latest upgrade scripts from the Telar repository
  2. Detect your current version
  3. Apply all necessary migrations
  4. Create a pull request with the upgraded files

Troubleshooting

Upgrade Workflow Not Appearing

Problem: The “Upgrade Telar” workflow doesn’t appear in the Actions tab.

Solution:

  • Make sure you’ve committed the .github/workflows/upgrade.yml file
  • Refresh the Actions tab in your browser
  • Check that the YAML file is valid (no syntax errors)

Upgrade Fails with Error

Problem: The upgrade workflow fails with an error message.

Solution:

  • Check the workflow logs in the Actions tab for details
  • Verify your _config.yml has a telar.version field
  • The workflow downloads scripts automatically, so network issues could cause failures
  • If the error persists, report an issue with the error message

Issue Not Created

Problem: The upgrade completes but no issue is created.

Solution:

  • Check if an issue already exists with title “Upgrade Telar to [version]”
  • Verify GitHub Actions has issues: write permission in your repository
  • Check that issues are enabled in your repository settings
  • Try running the workflow again

Merge Conflicts

Problem: The upgrade PR has merge conflicts.

Solution:

  • Review which files have conflicts
  • If conflicts are in files you’ve customized (CSS, layouts), manually resolve them
  • If conflicts are in framework files, the upgrade version should usually be preferred
  • If unsure, ask for help

Version History

v0.3.4-beta (2025-10-31)

  • Introduced automated upgrade system
  • Added GitHub Actions workflow for one-click upgrades
  • Added Python migration framework
  • Added v020_to_v030 and v033_to_v034 migrations
  • Added language configuration (telar_language)

v0.3.3-beta (2025-10-28)

  • Fixed GitHub Actions deployment issues

v0.3.2-beta (2025-10-28)

  • Added image sizing syntax for panel markdown
  • Refactored index page for easier customization

v0.3.1-beta (2025-10-26)

  • Fixed thumbnail loading bugs

v0.3.0-beta (2025-10-25)

  • Added Google Sheets integration
  • Added comprehensive error messaging system
  • Added theme system with 4 preset themes

v0.2.0-beta (2025-10-20)

  • Scrolling system overhaul
  • Support for multiple IIIF objects per story

v0.1.1-beta (2025-10-16)

  • Fixed IIIF thumbnail resolution
  • Fixed markdown rendering in panels

v0.1.0-beta (2025-10-14)

  • Initial beta release

Need Help?


Back to top

Developed by Adelaida Ávila, Juan Cobo Betancourt, Santiago Muñoz, and students and scholars at the UCSB Archives, Memory, and Preservation Lab, the UT Archives, Mapping, and Preservation Lab, and Neogranadina