DEV Community

Cover image for The Gatsby Changelog Prototype
Paul Scanlon
Paul Scanlon

Posted on • Updated on

The Gatsby Changelog Prototype

My Workflow

build-me.yml

A scheduled workflow for Jamstack Static Site Generators.

Demo: https://changelog.gatsbyjs.io
Repo: https://github.com/gatsby-inc/changelog

You can read all about how I created this workflow and the demo site on the link below: 👇
Building The Gatsby Changelog Prototype


Submission Category:

DIY Deployments


Yaml File or Link to Code

build-me.yml

name: Build Site

on:
  schedule:
    - cron: '* */12 * * *'

jobs:
  Trigger-Build:
    runs-on: ubuntu-latest
    steps:
      - run: echo "set env using GATSBY_CLOUD_BUILD_WEBOOK"
        env:
          GATSBY_WEBHOOK: ${{secrets.GATSBY_CLOUD_BUILD_WEBOOK}}
      - name: Post to Gatsby Cloud Webhook
        id: rebuild
        uses: fjogeleit/http-request-action@master
        with:
          url: ${{secrets.GATSBY_CLOUD_BUILD_WEBOOK}}
          method: 'POST'
Enter fullscreen mode Exit fullscreen mode

Additional Resources / Info

fjogeleit/http-request-action@master

Top comments (0)