Skip to content

Generate JSON from Planet RSS and Deploy #771

Generate JSON from Planet RSS and Deploy

Generate JSON from Planet RSS and Deploy #771

Workflow file for this run

name: Generate JSON from Planet RSS and Deploy
on:
schedule:
- cron: '34 2 * * *'
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install 🔧
run: |
npm install
- name: Generate JSON ⚙️
run: |
mkdir build
node script.js > build/planet.json
- name: Deploy 🚀
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}