GitHub Actions Integration
Manage your short links as code using GitHub Actions. This action synchronizes links defined in a YAML configuration file with your Short.io account, enabling version-controlled management of redirect links.
View on GitHubWorkflow example
Add the following workflow to .github/workflows/shortio.yml:
name: Sync Short Links
on:
push:
branches: [main]
paths:
- 'shortio.yaml'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Short-io/link-sync-action@v1
with:
api_key: ${{ secrets.SHORTIO_API_KEY }}
Configuration file
Create a shortio.yaml file in your repository root:
domain: "your-domain.com"
links:
docs:
url: "https://documentation.example.com"
title: "Documentation"
tags:
- docs
- public