Skip to content

How to use GitHub Actions to build and/or deploy an Observable Framework project #1030

Answered by mbostock
ModelEarth asked this question in Q&A
Discussion options

You must be logged in to vote

I moved this to a discussion because it sounds like you’re asking how to use GitHub Actions to build and/or deploy an Observable Framework project. The deploy.yml we use is provided as reference, but it isn’t intended to work out of the box for all projects — there are quite a few ways in which are deploy.yml is tailored uniquely to the needs of building the Observable Framework documentation (which is itself an Observable Framework project).

Here’s a smaller example of a GitHub Actions deploy workflow, setup to deploy on either (1) a daily schedule at 10:15 AM UTC, (2) on pushes to the main branch, and (3) manually.

name: Deploy

on:
  workflow_dispatch: {}
  push:
    branches: [main]
  s…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ModelEarth
Comment options

You must be logged in to vote
3 replies
@Fil
Comment options

Fil Mar 9, 2024
Collaborator

@ModelEarth
Comment options

@mbostock
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
3 participants
Converted from issue

This discussion was converted from issue #1028 on March 09, 2024 01:07.