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:
- Detects your current Telar version from
_config.yml - Applies all necessary migrations incrementally (e.g., v0.3.4 → v0.3.5 → v0.3.6)
- Updates framework files and configurations
- Creates an upgrade branch and issue with detailed summary
- 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 (Settings → General → check Issues). Sites created using the “Use this template” button already have issues enabled.
- Go to your repository on GitHub
- Click the Actions tab
- Select the “Upgrade Telar” workflow from the left sidebar
- Click Run workflow (green button on the right)
- Click the green Run workflow button in the dropdown
- Wait for the workflow to complete (usually 1-2 minutes)
- Review the automatically created upgrade issue
- Click the link in the issue to create a pull request
- 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
- Visit your site to verify it’s working correctly
- Check the upgrade issue for any manual steps (visible in the “After Merging” section)
- If you have custom themes or modifications, test them thoroughly
- Close the upgrade issue once everything is working - this marks the upgrade as complete
- 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.
Method A: GitHub Web Interface (Recommended)
Work entirely in the browser without installing anything:
- Open the upgrade workflow in Telar:
- Go to https://github.com/UCSB-AMPLab/telar/blob/main/.github/workflows/upgrade.yml
- Click the Copy raw contents button (📋 icon in the top-right corner)
- Create the file in your repository:
- Go to your repository on GitHub
- Click Add file → Create 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:
- Download the workflow file from Telar:
curl -o .github/workflows/upgrade.yml https://raw.githubusercontent.com/UCSB-AMPLab/telar/main/.github/workflows/upgrade.yml - 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+.
Method A: GitHub Web Interface (Recommended)
Work entirely in the browser:
- Open the build workflow in Telar:
- Go to https://github.com/UCSB-AMPLab/telar/blob/main/.github/workflows/build.yml
- Click the Copy raw contents button (📋 icon in the top-right corner)
- 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:
- Download the workflow file from Telar:
curl -o .github/workflows/build.yml https://raw.githubusercontent.com/UCSB-AMPLab/telar/main/.github/workflows/build.yml - 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:
- Download the latest upgrade scripts from the Telar repository
- Detect your current version
- Apply all necessary migrations
- 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.ymlfile - 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.ymlhas atelar.versionfield - 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: writepermission 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?
- Documentation: ampl.clair.ucsb.edu/telar-docs
- Example Site: ampl.clair.ucsb.edu/telar
- Report Issues: GitHub Issues