Skip to content

Generate images

Generate images #19447

name: Generate images
on:
workflow_dispatch:
schedule:
- cron: '*/30 * * * *'
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '20'
- name: Run script
run: |
npm install
node index.js
- name: Copy landing page files
run: cp -a ./html/. ./out
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'out/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4