Skip to content

Execute and Save Outputs #46

Execute and Save Outputs

Execute and Save Outputs #46

Workflow file for this run

name: Execute and Save Outputs
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
execute:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests numpy python-dxf
- name: Restore cache
uses: actions/cache@v4
with:
path: cache
key: actions
- name: Execute script
run: |
mkdir -p cache
python scripts/crane.py --github_token ${{ secrets.GH_PAT }} --github_actor ${{ github.actor }}
cp github_action_data.json public/
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: public/
- name: Publish
uses: actions/deploy-pages@v4