Skip to content

Generate Ship Animation #71

Generate Ship Animation

Generate Ship Animation #71

name: Generate Ship Animation
on:
schedule:
- cron: "0 6 * * *" # Every day at 06:00 UTC
workflow_dispatch:
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install requests
- name: Generate ship SVG
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python generate_ship_svg.py
- name: Push to output branch
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}