My Workflow
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
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'
              
    
Top comments (0)