Skip to content

Add needs: generate to build job #22

Add needs: generate to build job

Add needs: generate to build job #22

Workflow file for this run

name: Run Python Script
on:
push:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "poetry"
- run: poetry install
- run: poetry run python script.py
build:
needs: generate
runs-on: ubuntu-latest
steps:
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: .
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4