Corcho (/ˈkoɾt͡ʃo/) is a tool that creates and sync web slideshows using the contents of a Figma file. You can then use GitHub Pages to host your slideshow on the web and have it automatically updated using GitHub Actions.
- Create a file in Figma and add some pages with just one frame inside.
- Create a non-expiring Figma personal access token.
- Copy the file id of your Figma file (which is the string of random alphanumeric characters found in the URL after
figma.com/file
)
- Fork this project and add two secrets:
FIGMA_FILE
: with the file id.FIGMA_TOKEN
: with your Figma Personal Access Token.
- Enable:
- GitHub pages for the
main
branch. - The deploy workflow (by visiting the Actions tab).
By default the cronjob of the GitHub Action will run every hour on the hour, but you can change the scheduling to be more frequent. Here's an example of a job that gets executed every 5 minutes:
name: Cron
on:
push:
branches: [ "main" ]
schedule:
- cron: "*/5 * * * *"
- Clone this project
- Rename the
.env.sample
file to.env
and update it:
FIGMA_FILE
: with the file id.FIGMA_TOKEN
: with your Figma Personal Access Token.
- Install the dependencies with
yarn install
ornpm install
- Run the project with
yarn start
ornpm run start
- Open the
index.html
file in your browser using a local server.